Module: Braingasm::Options
- Defined in:
- lib/braingasm/options.rb
Class Method Summary collapse
Class Method Details
.[](option) ⇒ Object
10 11 12 13 14 |
# File 'lib/braingasm/options.rb', line 10 def self.[](option) return @options[option] if @options.has_key?(option) check_defaults(option) @defaults[option] end |
.[]=(option, value) ⇒ Object
16 17 18 19 |
# File 'lib/braingasm/options.rb', line 16 def self.[]=(option, value) check_defaults(option) @options[option] = value end |
.reset ⇒ Object
21 22 23 |
# File 'lib/braingasm/options.rb', line 21 def self.reset @options = @defaults.dup end |