Class: TTK::StatusWithMessage
- Includes:
- Abstract
- Defined in:
- lib/ttk/status.rb
Direct Known Subclasses
Instance Attribute Summary collapse
-
#message ⇒ Object
Returns the value of attribute message.
Attributes inherited from Status
Instance Method Summary collapse
-
#initialize(anObject = nil) ⇒ StatusWithMessage
constructor
A new instance of StatusWithMessage.
- #to_ttk_log(log) ⇒ Object
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. = anObject unless anObject.nil? end |
Instance Attribute Details
#message ⇒ Object
Returns the value of attribute message.
82 83 84 |
# File 'lib/ttk/status.rb', line 82 def @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 |