Class: ProcessHelper::TimestampedString
- Inherits:
-
String
- Object
- String
- ProcessHelper::TimestampedString
- Defined in:
- lib/process-helper.rb
Instance Attribute Summary collapse
-
#time ⇒ Object
readonly
Returns the value of attribute time.
Instance Method Summary collapse
-
#initialize(string, time = nil) ⇒ TimestampedString
constructor
A new instance of TimestampedString.
Constructor Details
#initialize(string, time = nil) ⇒ TimestampedString
Returns a new instance of TimestampedString.
164 165 166 167 168 |
# File 'lib/process-helper.rb', line 164 def initialize(string, time = nil) time ||= Time.now super(string) @time = time end |
Instance Attribute Details
#time ⇒ Object (readonly)
Returns the value of attribute time.
162 163 164 |
# File 'lib/process-helper.rb', line 162 def time @time end |