Sha256: 26bf992d2922c6d523e5108184a35ca9a84472b65684fb34d8ba617687a28808
Contents?: true
Size: 363 Bytes
Versions: 1
Compression:
Stored size: 363 Bytes
Contents
µValidator =============== Zero dependency, dead simple validation library. Usage ======== ``` require "micro_validator" class Foo validate :bar validate :baz private def bar errors.add(:attribute, "Attribute is wrong") if attribute == "Wrong" end def baz false # Always fails end end @foo = Foo.new @foo.valid? # => false ```
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
micro_validator-0.0.2 | README.md |