GitHub Sale: sign up for any paid plan this week and pay nothing until January 1, 2009!  [ hide ]

public
Rubygem
Description: Mash is a Hash with the ability to read, write, and test for the presence of arbitrary attributes using method calls.
Clone URL: git://github.com/mbleigh/mash.git
judofyr (author)
Sat Aug 02 04:47:02 -0700 2008
commit  b437e8d93bc1d11cd8b83edc600287e4e746f25a
tree    8bc91637be7a6289715abc377caee32f09393708
parent  40e11f61dbf4ac184f1d0dd76e691afe75d0be56
mash /
name age message
file .gitignore Sat Apr 12 09:06:20 -0700 2008 Initial import. [mbleigh]
file History.txt Tue Apr 29 18:06:06 -0700 2008 Updated to 0.0.5 [mbleigh]
file Manifest.txt Sat Apr 12 09:06:20 -0700 2008 Initial import. [mbleigh]
file README.txt Tue Apr 29 06:25:19 -0700 2008 Update to README. [mbleigh]
file Rakefile Fri Apr 25 06:23:53 -0700 2008 Setting up GitHub gem repo hosting. [mbleigh]
directory lib/ Sat Aug 02 04:54:31 -0700 2008 Make Mash[] work too [judofyr]
file mash.gemspec Tue Jul 22 06:55:49 -0700 2008 Bumped gem version. [mbleigh]
directory spec/ Tue Jul 22 06:44:46 -0700 2008 Mash#initialize should accept a default block [judofyr]
README.txt
= Mash (Mocking Hash)

http://github.com/mbleigh/mash

== DESCRIPTION:

Mash is an extended Hash that gives simple pseudo-object functionality
that can be built from hashes and easily extended. It is designed to
be used in RESTful API libraries to provide easy object-like access 
to JSON and XML parsed hashes.

== SYNOPSIS:
  
  mash = Mash.new
  mash.name? # => false
  mash.name # => nil
  mash.name = "My Mash"
  mash.name # => "My Mash"
  mash.name? # => true
  mash.inspect # => <Mash name="My Mash">
  
  mash = Mash.new
  # use bang methods for multi-level assignment
  mash.author!.name = "Michael Bleigh"
  mash.author # => <Mash name="Michael Bleigh">

== INSTALL:

Gem:

Mash is hosted on the GitHub gem repository, so if you haven't already:

  gem sources -a http://gems.github.com/  
  sudo gem install mbleigh-mash
  
Git:

  git clone git://github.com/mbleigh/mash.git
  
== RESOURCES

If you encounter any problems or have ideas for new features 
please report them at the Lighthouse project for Mash: 

http://mbleigh.lighthouseapp.com/projects/10112-mash

== LICENSE:

Copyright (c) 2008 Michael Bleigh (http://mbleigh.com/) 
and Intridea Inc. (http://intridea.com/), released under the MIT license

Permission is hereby granted, free of charge, to any person obtaining
a copy of this software and associated documentation files (the
'Software'), to deal in the Software without restriction, including
without limitation the rights to use, copy, modify, merge, publish,
distribute, sublicense, and/or sell copies of the Software, and to
permit persons to whom the Software is furnished to do so, subject to
the following conditions:

The above copyright notice and this permission notice shall be
included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND,
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.