RubyGems.org

A simple type validation tool for plain ruby object attributes that performs conversions when possible. Similar to ruby-core Struct but i didn't like using inheritance for something more appropriate for mixins. Check virtus gem if you are looking for a full featured attributes settings for your Ruby Objects that requires complex automatic coercions among other things. If you are looking for a nestable, coercible, Hash-like data structure take a look at structure gem.

installgem install strongly_typed -v 0.0.1
Authors

Leo Gallucci

1,233 total downloads 553 for this version
Owners

D65593e3a584ff801c331e387964c69e

Licenses

MIT

Gemfile
gem 'strongly_typed', '~> 0.0.1'
Versions
  1. 0.0.2 February 27, 2013 (11.5 KB)
  2. 0.0.1 February 21, 2013 (10 KB)
Runtime Dependencies
  1. boolean_class ~> 0.0