This repository is private.
All pages are served over SSL and all pushing and pulling is done over SSH.
No one may fork, clone, or view it unless they are added as a member.
Every repository with this icon (
) is private.
Every repository with this icon (
This repository is public.
Anyone may fork, clone, or view it.
Every repository with this icon (
) is public.
Every repository with this icon (
metash /
| name | age | message | |
|---|---|---|---|
| |
.gitignore | Sat Jan 17 15:46:12 -0800 2009 | |
| |
README.textile | Sun Jan 18 12:15:37 -0800 2009 | |
| |
Rakefile | Mon Jun 15 05:15:35 -0700 2009 | |
| |
lib/ | Tue Jun 16 06:48:57 -0700 2009 | |
| |
metash.gemspec | Tue Jun 16 06:48:57 -0700 2009 | |
| |
metash_spec.rb | Tue Jun 16 06:48:57 -0700 2009 |
README.textile
Metash
Metash is a Ruby library that allow what I call “Meta Hashes”.
A Metash is a kind of hash that allows method chaining to get the values
using a bit of method_missing magic. This gives a nice interface for Hashes.
Example
c = Metash.new :key1 => "value1", :nested => {:key2 => "value2"}
c.key1 # => "value1"
c.nested.key2 # => "value2"
c.nested.key2 "Another value"
c.nested.key2 # => "Another value"
c.key3 "value3" # c.key3 # => "value3"
c.key4 # => nil







