Class: Mockolate::Types::Array
- Inherits:
-
Mockolate::Types
- Object
- Mockolate::Types
- Mockolate::Types::Array
- Defined in:
- lib/mockolate/types/array.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 |
# File 'lib/mockolate/types/array.rb', line 11 def parse return name => [].push(*_parse_child) end |