Class: Contextuality::Defaults
- Inherits:
-
Hash
- Object
- Hash
- Contextuality::Defaults
- Defined in:
- lib/contextuality/defaults.rb
Instance Method Summary collapse
Instance Method Details
#[](key) ⇒ Object
3 4 5 6 |
# File 'lib/contextuality/defaults.rb', line 3 def [] key value = super key.to_sym value.respond_to?(:call) ? value.call : value end |
#[]=(key, value) ⇒ Object
8 9 10 |
# File 'lib/contextuality/defaults.rb', line 8 def []= key, value super key.to_sym, value end |