public Method

Mash.default(key = nil)

There's no documentation for this item.

Source Code

# File merb/core_ext/mash.rb, line 15
def default(key = nil) 
  if key.is_a?(Symbol) && include?(key = key.to_s) 
    self[key] 
  else 
    super 
  end 
end
Comments

Have your say
Please use Textile formatting (click here for a cheat sheet). Use <code/> and <pre/> for code samples.
Click here to login with OpenID to to post comments.