class Stove::Mash

Public Instance Methods

method_missing(m, *args, &block) click to toggle source
Calls superclass method
# File lib/stove/mash.rb, line 3
def method_missing(m, *args, &block)
  if has_key?(m.to_sym)
    self[m.to_sym]
  elsif has_key?(m.to_s)
    self[m.to_s]
  else
    super
  end
end
methods(include_private = false) click to toggle source
Calls superclass method
# File lib/stove/mash.rb, line 13
def methods(include_private = false)
  super + self.keys.map(&:to_sym)
end
respond_to?(m, include_private = false) click to toggle source
Calls superclass method
# File lib/stove/mash.rb, line 17
def respond_to?(m, include_private = false)
  if has_key?(m.to_sym) || has_key?(m.to_s)
    true
  else
    super
  end
end