Module: Crosstest::Core::Util::Hashable

Defined in:
lib/crosstest/core/util.rb

Instance Method Summary collapse

Instance Method Details

#to_hashObject



12
13
14
15
16
# File 'lib/crosstest/core/util.rb', line 12

def to_hash
  instance_variables.each_with_object({}) do |var, hash|
    hash[var.to_s.delete('@')] = instance_variable_get(var)
  end
end