Class: OpenStruct
- Inherits:
-
Object
- Object
- OpenStruct
- Defined in:
- lib/rails_config/ext/ostruct_ext.rb
Direct Known Subclasses
Instance Method Summary collapse
Instance Method Details
#[](key) ⇒ Object
5 6 7 |
# File 'lib/rails_config/ext/ostruct_ext.rb', line 5 def [](key) self.send(key) end |
#[]=(key, value) ⇒ Object
9 10 11 |
# File 'lib/rails_config/ext/ostruct_ext.rb', line 9 def []=(key, value) self.send("#{key.to_s}=", value) end |