Class: Mockolate::Types::Hash
- Inherits:
-
Mockolate::Types
- Object
- Mockolate::Types
- Mockolate::Types::Hash
- Defined in:
- lib/mockolate/types/hash.rb
Instance Method Summary collapse
-
#parse ⇒ Object
Public Methods name: Name of the key specified in params block has_children: Returns children elements of hash.
Methods inherited from Mockolate::Types
Instance Method Details
#parse ⇒ Object
Public Methods name: Name of the key specified in params block has_children: Returns children elements of hash
Private Methods _parse_child Returns array with parsed children
11 12 13 14 |
# File 'lib/mockolate/types/hash.rb', line 11 def parse return name => {}.merge(*_parse_child) if name {}.merge(*_parse_child) end |