Class: Playmo::Options
- Inherits:
-
Object
- Object
- Playmo::Options
- Includes:
- Singleton
- Defined in:
- lib/playmo/options.rb
Instance Attribute Summary collapse
-
#options_hash ⇒ Object
Returns the value of attribute options_hash.
Instance Method Summary collapse
Instance Attribute Details
#options_hash ⇒ Object
Returns the value of attribute options_hash.
6 7 8 |
# File 'lib/playmo/options.rb', line 6 def end |
Instance Method Details
#get(key) ⇒ Object
13 14 15 |
# File 'lib/playmo/options.rb', line 13 def get(key) [key.to_sym] end |
#set(key, value) ⇒ Object
8 9 10 11 |
# File 'lib/playmo/options.rb', line 8 def set(key, value) ||= {} [key.to_sym] = value end |