class Hash

Public Instance Methods

method_missing(meth,*args) click to toggle source

lets you specify hash as hash.key this came from CodingInRuby on RubyGarden www.rubygarden.org/ruby?CodingInRuby

# File lib/ogginfo.rb, line 15
def method_missing(meth,*args) 
  if /=$/=~(meth=meth.id2name) then
    self[meth[0...-1]] = (args.length<2 ? args[0] : args)
  else
    self[meth]
  end