module WageSlave

A module mixin for simple Ruby data validation. No Rails needed. Basic, but highly extentable with different kinds of validators. You can create new validation types by adding to the case statement on line 77, and adding an accompanying method.

Constants

VERSION

Attributes

configuration[W]

Public Class Methods

configuration() click to toggle source
# File lib/wage_slave/configuration.rb, line 34
def configuration
  @configuration ||= Configuration.new
end
configure() { |configuration| ... } click to toggle source
# File lib/wage_slave/configuration.rb, line 42
def configure
  yield(configuration)
end
reset() click to toggle source
# File lib/wage_slave/configuration.rb, line 38
def reset
  @configuration = Configuration.new
end