Module: ObjectWithProperties
- Included in:
- PhotoTreeNode
- Defined in:
- lib/ralbum/object_with_properties.rb
Instance Method Summary collapse
Instance Method Details
#[](key) ⇒ Object
7 8 9 |
# File 'lib/ralbum/object_with_properties.rb', line 7 def []( key ) @properties[ key ] end |
#[]=(key, value) ⇒ Object
11 12 13 |
# File 'lib/ralbum/object_with_properties.rb', line 11 def[]=( key, value ) @properties[ key ] = value end |
#init_object_with_properties ⇒ Object
2 3 4 5 |
# File 'lib/ralbum/object_with_properties.rb', line 2 def init_object_with_properties @properties = {} @properties.default = "" end |