Class: ReeObject::ToHash
- Inherits:
-
Object
- Object
- ReeObject::ToHash
- Includes:
- Ree::FnDSL
- Defined in:
- lib/ree_lib/packages/ree_object/package/ree_object/functions/to_hash.rb
Constant Summary collapse
- RecursiveObjectErr =
Class.new(ArgumentError)
- BASIC_TYPES =
[ Date, Time, Numeric, String, FalseClass, TrueClass, NilClass, Symbol, Module, Class ].freeze
Instance Method Summary collapse
Instance Method Details
#call(obj) ⇒ Object
18 19 20 |
# File 'lib/ree_lib/packages/ree_object/package/ree_object/functions/to_hash.rb', line 18 def call(obj) recursively_convert(obj, {}, {}) end |