Sha256: cc3826479e5ff491775ef42e672ab0d61d057ee3e37a81b7310b845f90f375e3
Contents?: true
Size: 353 Bytes
Versions: 2
Compression:
Stored size: 353 Bytes
Contents
module LIVR class Rule def initialize(*) end def call(value, user_data, field_results) raise NotImplementedError end private def is_primitive(value) [Numeric, String, TrueClass, FalseClass].any?{|klass| value.is_a?(klass) } end def is_no_value(value) value == nil || value == "" end end end
Version data entries
2 entries across 2 versions & 2 rubygems
Version | Path |
---|---|
ruby-livr-2.0.0 | lib/livr/rule.rb |
livr2-2.0.0 | lib/livr/rule.rb |