Class: HashOut::Hasher

Inherits:
Struct
  • Object
show all
Extended by:
Forwardable
Defined in:
lib/hash_out/hasher.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#call_registryObject

Returns the value of attribute call_registry

Returns:

  • (Object)

    the current value of call_registry



5
6
7
# File 'lib/hash_out/hasher.rb', line 5

def call_registry
  @call_registry
end

#objectObject

Returns the value of attribute object

Returns:

  • (Object)

    the current value of object



5
6
7
# File 'lib/hash_out/hasher.rb', line 5

def object
  @object
end

Instance Method Details

#object_to_hashObject



10
11
12
13
14
# File 'lib/hash_out/hasher.rb', line 10

def object_to_hash
  prepare_hashable_methods
  delete_excluded_methods
  Hash[hashable_method_value_pairs]
end