Class: TTK::StatusWithMessage

Inherits:
Status show all
Includes:
Abstract
Defined in:
lib/ttk/status.rb

Direct Known Subclasses

AbortStatus, ErrorStatus, FailStatus, SkipStatus

Instance Attribute Summary collapse

Attributes inherited from Status

#weight

Instance Method Summary collapse

Methods inherited from Status

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

Constructor Details

#initialize(anObject = nil) ⇒ StatusWithMessage

Returns a new instance of StatusWithMessage.



84
85
86
87
# File 'lib/ttk/status.rb', line 84

def initialize ( anObject=nil )
  super()
  self.message = anObject unless anObject.nil?
end

Instance Attribute Details

#messageObject

Returns the value of attribute message.



82
83
84
# File 'lib/ttk/status.rb', line 82

def message
  @message
end

Instance Method Details

#to_ttk_log(log) ⇒ Object



93
94
95
96
# File 'lib/ttk/status.rb', line 93

def to_ttk_log ( log )
  super
  log.reason = @message if defined? @message
end