RubyGems.org

hashblock

0.1.0

Sometimes you'll want to allow the user to configure a plugin or some other object via a ruby block where options are specified through method calls. Hashblock is a tool which converts either a hash or a block into a plain old ruby object that is simple to access and modify. Hashblock supports deep nesting and collision handling (since a block can contain multiple invokations of the same method)

installgem install hashblock
Authors

Nathan Ladd

2,323 total downloads 1,209 for this version
Owners

96b74110a0fd4ea12664cafc1cb6bcad

Gemfile
gem 'hashblock', '~> 0.1.0'
Versions
  1. 0.1.0 July 26, 2011 (7 KB)
  2. 0.0.1 July 26, 2011 (4.5 KB)
Development Dependencies
  1. bluecloth >= 0
  2. shoulda >= 0