Method: Spectus::Result::Fail#to_sym
- Defined in:
- lib/spectus/result/fail.rb
#to_sym ⇒ Symbol
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
Identify the state of the result.
35 36 37 |
# File 'lib/spectus/result/fail.rb', line 35 def to_sym failure? ? :failure : :error end |