module Psychic::Util::Hashable

Public Instance Methods

to_hash() click to toggle source
# File lib/psychic/util.rb, line 6
def to_hash
  instance_variables.each_with_object({}) do |var, hash|
    hash[var.to_s.delete('@')] = instance_variable_get(var)
  end
end