Class: TimeLord::Time
- Inherits:
-
Object
- Object
- TimeLord::Time
- Defined in:
- lib/time-lord/time.rb
Instance Attribute Summary collapse
-
#moment ⇒ Object
Returns the value of attribute moment.
Instance Method Summary collapse
-
#initialize(moment) ⇒ Time
constructor
A new instance of Time.
- #period ⇒ Object
Constructor Details
#initialize(moment) ⇒ Time
Returns a new instance of Time.
5 6 7 |
# File 'lib/time-lord/time.rb', line 5 def initialize(moment) self.moment = moment end |
Instance Attribute Details
#moment ⇒ Object
Returns the value of attribute moment.
3 4 5 |
# File 'lib/time-lord/time.rb', line 3 def moment @moment end |