Module: StrongStruct::Core
- Included in:
- StrongStruct
- Defined in:
- lib/strong_struct.rb
Instance Method Summary collapse
Instance Method Details
#new(*args) ⇒ Object
109 110 111 112 113 114 115 116 117 |
# File 'lib/strong_struct.rb', line 109 def new(*args) Class.new do extend ClassMethods include InstanceMethods args.each { |arg| add_accessor(arg) } add_accessors end end |