Module: Yet::PublicApi

Included in:
Yet
Defined in:
lib/yet/public_api.rb

Instance Method Summary collapse

Instance Method Details

#invalid(value, operations = []) ⇒ Object Also known as: not, is_not



13
14
15
# File 'lib/yet/public_api.rb', line 13

def invalid(value, operations = [])
  Yet::Invalid.new(value, operations)
end

#valid(value, operations = []) ⇒ Object Also known as: maybe, is



6
7
8
# File 'lib/yet/public_api.rb', line 6

def valid(value, operations = [])
  Yet::Valid.new(value, operations)
end