Safer is an umbrella library, with components designed to make it simple to verify and improve the safety of your ruby code. There are at present three modules under the safer umbrella: [<tt>Safer::IVar</tt>] generates specially-named accessor functions for class instance variables. [<tt>Safer::Protocol</tt>] is used to provide a ruby analogue to Objective-C Protocols (which are similar to Java interfaces, but do not require inheritance). [<tt>Safer::HashProtocol</tt>] verifies that a Hash keys follow a defined format. Intended to help use of Hash objects as keyword parameters.
Gemfile gem 'safer', '~> 0.3.0'
install gem install safer -v 0.3.0