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.
166 167 168 169 170 |
# File 'lib/process-helper.rb', line 166 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.
164 165 166 |
# File 'lib/process-helper.rb', line 164 def time @time end |