Module: Lite::Command::Internals::Faults
- Defined in:
- lib/lite/command/internals/faults.rb
Instance Method Summary collapse
- #caused_by ⇒ Object
- #caused_fault? ⇒ Boolean
- #threw_fault? ⇒ Boolean
- #thrown? ⇒ Boolean
- #thrown_by ⇒ Object
Instance Method Details
#caused_by ⇒ Object
8 9 10 11 12 |
# File 'lib/lite/command/internals/faults.rb', line 8 def caused_by return if success? @caused_by || self end |
#caused_fault? ⇒ Boolean
14 15 16 |
# File 'lib/lite/command/internals/faults.rb', line 14 def caused_fault? caused_by == self end |
#threw_fault? ⇒ Boolean
24 25 26 |
# File 'lib/lite/command/internals/faults.rb', line 24 def threw_fault? thrown_by == self end |
#thrown? ⇒ Boolean
28 29 30 |
# File 'lib/lite/command/internals/faults.rb', line 28 def thrown? fault? && !caused_fault? end |
#thrown_by ⇒ Object
18 19 20 21 22 |
# File 'lib/lite/command/internals/faults.rb', line 18 def thrown_by return if success? @thrown_by || self end |