intridea/hashie — pull request #43 by davemitchell (2012-04-16 03:30:53+00:00)
Title: Small addition (with tests & updated doc) to allow read-only multi-level tests

Under-bang is similar to Mash's bang (!) operation, except that it doesn't create new keys. Instead, it just returns an unassociated new Mash instance when it encounters a missing key.

Example:

mash = Hashie::Mash.new
mash.author_.name? # => false
mash.author_.website_.url # => nil
mash.author_.age = 100 # => 100 (assigned to temp on stack)
mash.inspect # =>