class Sanatio::BuiltIn::Present
Public Instance Methods
reason(_)
click to toggle source
# File lib/sanatio/built-in/present.rb, line 11 def reason(_) :not_present end
skip?(_)
click to toggle source
# File lib/sanatio/built-in/present.rb, line 4 def skip?(_) end
valid?(object)
click to toggle source
# File lib/sanatio/built-in/present.rb, line 7 def valid?(object) !object.nil? && (!object.respond_to?(:empty?) || !object.empty?) end