Class: Plumb::Result::Invalid

Inherits:
Plumb::Result show all
Defined in:
lib/plumb/result.rb

Instance Attribute Summary

Attributes inherited from Plumb::Result

#errors, #value

Instance Method Summary collapse

Methods inherited from Plumb::Result

#initialize, #inspect, invalid, #invalid, #reset, valid, #valid, wrap

Constructor Details

This class inherits a constructor from Plumb::Result

Instance Method Details

#invalid?Boolean

Returns:

  • (Boolean)


57
# File 'lib/plumb/result.rb', line 57

def invalid? = true

#map(_) ⇒ Object



59
60
61
# File 'lib/plumb/result.rb', line 59

def map(_)
  self
end

#valid?Boolean

Returns:

  • (Boolean)


56
# File 'lib/plumb/result.rb', line 56

def valid? = false