Class: TTK::AbortStatus

Inherits:
StatusWithMessage show all
Includes:
Concrete
Defined in:
lib/ttk/status.rb

Direct Known Subclasses

TimeoutAbortStatus

Constant Summary collapse

DEFAULT_WEIGHT =
:FAIL

Instance Attribute Summary collapse

Attributes inherited from StatusWithMessage

#message

Attributes inherited from Status

#weight

Instance Method Summary collapse

Methods inherited from StatusWithMessage

#to_ttk_log

Methods inherited from Status

default_weight_value, hook_name, #hook_name, #pass?, status_name, #to_s, #to_ttk_log

Constructor Details

#initialize(aFlow, anObject = nil) ⇒ AbortStatus

Returns a new instance of AbortStatus.



136
137
138
139
# File 'lib/ttk/status.rb', line 136

def initialize ( aFlow, anObject=nil )
  @flow = aFlow
  super(anObject)
end

Instance Attribute Details

#flowObject (readonly)

Returns the value of attribute flow.



134
135
136
# File 'lib/ttk/status.rb', line 134

def flow
  @flow
end

Instance Method Details

#exceptionObject



141
142
143
144
145
146
# File 'lib/ttk/status.rb', line 141

def exception
  f = @flow
  @flow = nil
  f << :abort
  super
end