Module: Lite::Command::Internals::Faults

Defined in:
lib/lite/command/internals/faults.rb

Instance Method Summary collapse

Instance Method Details

#caused_byObject



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

Returns:

  • (Boolean)


14
15
16
# File 'lib/lite/command/internals/faults.rb', line 14

def caused_fault?
  caused_by == self
end

#threw_fault?Boolean

Returns:

  • (Boolean)


24
25
26
# File 'lib/lite/command/internals/faults.rb', line 24

def threw_fault?
  thrown_by == self
end

#thrown?Boolean

Returns:

  • (Boolean)


28
29
30
# File 'lib/lite/command/internals/faults.rb', line 28

def thrown?
  fault? && !caused_fault?
end

#thrown_byObject



18
19
20
21
22
# File 'lib/lite/command/internals/faults.rb', line 18

def thrown_by
  return if success?

  @thrown_by || self
end