Class: TTK::FailStatus
- Inherits:
-
StatusWithMessage
- Object
- Status
- StatusWithMessage
- TTK::FailStatus
- Includes:
- Concrete
- Defined in:
- lib/ttk/status.rb
Constant Summary collapse
- DEFAULT_WEIGHT =
:FAIL
Instance Attribute Summary
Attributes inherited from StatusWithMessage
Attributes inherited from Status
Instance Method Summary collapse
- #hook_name ⇒ Object
-
#initialize(aWeight = nil, anObject = nil) ⇒ FailStatus
constructor
A new instance of FailStatus.
Methods inherited from StatusWithMessage
Methods inherited from Status
default_weight_value, #exception, hook_name, #pass?, status_name, #to_s, #to_ttk_log
Constructor Details
#initialize(aWeight = nil, anObject = nil) ⇒ FailStatus
Returns a new instance of FailStatus.
180 181 182 183 |
# File 'lib/ttk/status.rb', line 180 def initialize ( aWeight=nil, anObject=nil ) super(anObject) @weight = aWeight unless aWeight.nil? end |
Instance Method Details
#hook_name ⇒ Object
185 186 187 |
# File 'lib/ttk/status.rb', line 185 def hook_name :failed_hook end |