define schemas as a hash, and validate hashes! require 'hashidator' schema = {:name => String, :age => Integer} valid = {:name => "Harry", :age => 20} invalid = {:name => 1234, :age => "twenty"} h = Hashidator.new(schema) h.validate(valid) #=> true h.validate(invalid) #=> false see examples/basic.rb for full coverage. it knows classes, ranges, booleans, proc and duck typing. yay! to release this gem: * edit lib/hashidator/version.rb * edit CHANGES * git commit -am "Release VERSION" * rake release (c) 2009 harry vangberg <harry@vangberg.name>, peter suschlik <peter@suschlik.de> distributed under the mit license. google it.
Project
hashidator
define schemas as a hash, and validate hashes!
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
Pull Requests
Development
Project Readme