Class: TTK::FailStatus

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

Constant Summary collapse

DEFAULT_WEIGHT =
:FAIL

Instance Attribute Summary

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, #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_nameObject



185
186
187
# File 'lib/ttk/status.rb', line 185

def hook_name
  :failed_hook
end