Module: Solid::Success
- Included in:
- Output::Success, Result::Success
- Defined in:
- lib/solid/success.rb
Instance Method Summary collapse
Instance Method Details
#failure?(_type = nil) ⇒ Boolean
9 10 11 |
# File 'lib/solid/success.rb', line 9 def failure?(_type = nil) false end |
#success?(type = nil) ⇒ Boolean
5 6 7 |
# File 'lib/solid/success.rb', line 5 def success?(type = nil) type.nil? || type_checker.allow_success?([type]) end |
#value_or ⇒ Object
13 14 15 |
# File 'lib/solid/success.rb', line 13 def value_or value end |