Class: Mash
- Inherits:
-
Hashie::Mash
- Object
- Hashie::Mash
- Mash
- Defined in:
- lib/indix.rb
Instance Method Summary collapse
-
#convert_key(key) ⇒ Object
rubify keys.
- #count ⇒ Object
Instance Method Details
#convert_key(key) ⇒ Object
rubify keys
26 27 28 |
# File 'lib/indix.rb', line 26 def convert_key(key) key.to_s.underscore end |
#count ⇒ Object
30 31 32 33 34 35 36 |
# File 'lib/indix.rb', line 30 def count if self['count'] self['count'] else super end end |