Class: Hash
- Inherits:
-
Object
- Object
- Hash
- Defined in:
- lib/ionize/translate/ext.rb
Direct Known Subclasses
Instance Method Summary collapse
Instance Method Details
#node_type ⇒ Object
43 44 45 46 |
# File 'lib/ionize/translate/ext.rb', line 43 def node_type raise "Cannot use hash as node with more than one key!" unless keys.length == 1 keys.first end |