Module: Synapse::Easy::FakeHash
Instance Method Summary collapse
Instance Method Details
#[](key) ⇒ Object
4 5 6 |
# File 'lib/synapse/easy/fake_hash.rb', line 4 def [] key self.send key.to_sym if self.respond_to? key.to_sym end |
#[]=(key, value) ⇒ Object
7 8 9 |
# File 'lib/synapse/easy/fake_hash.rb', line 7 def []= key, value self.send :"#{key}=", value if self.respond_to? :"#{key}=" end |
#has_key?(key) ⇒ Boolean
13 14 15 |
# File 'lib/synapse/easy/fake_hash.rb', line 13 def has_key? key self.respond_to? key.to_sym end |
#include?(key) ⇒ Boolean
10 11 12 |
# File 'lib/synapse/easy/fake_hash.rb', line 10 def include? key self.respond_to? key.to_sym end |