lib/event_bus/config_handler.rb
# redefine original method
# for support DeepOpenStruct.new.freeze
redefine original method
for support DeepOpenStruct.new.freeze
redefine original method for support DeepOpenStruct . new . freeze
def new_ostruct_member(name)
      name = name.to_sym
      unless singleton_class.method_defined?(name)
        define_singleton_method(name) { @table[name] }
        define_singleton_method("#{name}=") do |x|
          raise TypeError, "can't modify frozen #{self.class}", caller(10) if self.frozen?
          modifiable[name] = x
        end
      end
      name
    end
def new_ostruct_member ( name ) name = name . to_sym unless singleton_class . method_defined? ( name ) define_singleton_method ( name ) { @table [ name ] } define_singleton_method ( "#{name}=" ) do | x | raise TypeError , "can't modify frozen #{self.class}" , caller ( 10 ) if self . frozen? modifiable [ name ] = x end end name end
redefine original method
for support DeepOpenStruct.new.freeze
redefine original method for support DeepOpenStruct . new . freeze
name
<not_specific>