Module: Ishin
- Defined in:
- lib/ishin.rb,
lib/ishin/mixin.rb,
lib/ishin/version.rb
Overview
Ishin is an object to hash converter Ruby Gem
Defined Under Namespace
Class Method Summary collapse
-
.to_hash(object, options = {}) ⇒ Object
Converts objects into their hash representations.
Class Method Details
.to_hash(object, options = {}) ⇒ Object
Converts objects into their hash representations.
9 10 11 12 13 14 15 |
# File 'lib/ishin.rb', line 9 def self.to_hash(object, = {}) = defaults.merge() result = {} type_to_hash(result, object, ) evaluate_methods(result, object, ) result end |