Class: EJSONExt::Encoders::RecursiveType
- Inherits:
-
DefaultType
- Object
- DefaultType
- EJSONExt::Encoders::RecursiveType
- Defined in:
- lib/ejson_ext/encoders/recursive_type.rb
Instance Method Summary collapse
Methods inherited from DefaultType
#initialize, #next_handler, #next_handler=, #parse
Constructor Details
This class inherits a constructor from EJSONExt::Encoders::DefaultType
Instance Method Details
#handler? ⇒ Boolean
4 5 6 |
# File 'lib/ejson_ext/encoders/recursive_type.rb', line 4 def handler? @value.is_a?(Hash) || @value.is_a?(Array) end |
#value ⇒ Object
8 9 10 |
# File 'lib/ejson_ext/encoders/recursive_type.rb', line 8 def value EJSONExt.ejson_for_type(@value) end |