Class: Dolphy::Settings
- Inherits:
-
Object
- Object
- Dolphy::Settings
- Defined in:
- lib/dolphy/settings.rb
Instance Attribute Summary collapse
-
#settings ⇒ Object
Returns the value of attribute settings.
Instance Method Summary collapse
- #[](element) ⇒ Object
- #[]=(key, value) ⇒ Object
-
#initialize ⇒ Settings
constructor
A new instance of Settings.
Constructor Details
#initialize ⇒ Settings
Returns a new instance of Settings.
5 6 7 |
# File 'lib/dolphy/settings.rb', line 5 def initialize @settings = settings_defaults end |
Instance Attribute Details
#settings ⇒ Object
Returns the value of attribute settings.
3 4 5 |
# File 'lib/dolphy/settings.rb', line 3 def settings @settings end |
Instance Method Details
#[](element) ⇒ Object
9 10 11 |
# File 'lib/dolphy/settings.rb', line 9 def [](element) settings[element] end |
#[]=(key, value) ⇒ Object
13 14 15 |
# File 'lib/dolphy/settings.rb', line 13 def []=(key, value) settings[key] = value end |