Class: Homeostasis::FrontHash
- Inherits:
-
Hash
- Object
- Hash
- Homeostasis::FrontHash
- Defined in:
- lib/homeostasis.rb
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.from_hash(hash) ⇒ Object
547 548 549 550 551 |
# File 'lib/homeostasis.rb', line 547 def self.from_hash(hash) front_hash = self.new hash.each { |k,v| front_hash[k] = v } front_hash end |
Instance Method Details
#[](key) ⇒ Object
535 536 537 |
# File 'lib/homeostasis.rb', line 535 def [](key) super(key.to_s) end |
#[]=(key, value) ⇒ Object
539 540 541 |
# File 'lib/homeostasis.rb', line 539 def []=(key, value) super(key.to_s, value) end |
#has_key?(key) ⇒ Boolean
543 544 545 |
# File 'lib/homeostasis.rb', line 543 def has_key?(key) super(key.to_s) end |