Class: Daru::Offsets::Tick Abstract
- Inherits:
-
DateOffsetType
- Object
- DateOffset
- DateOffsetType
- Daru::Offsets::Tick
- Defined in:
- lib/daru/date_time/offsets.rb
Overview
This class is abstract.
Private superclass for Offsets with equal inter-frequencies.
Instance Method Summary collapse
-
#+(date_time) ⇒ Object
Initialize one of the subclasses of Tick with the number of the times the offset should be applied, which is the supplied as the argument.
- #-(date_time) ⇒ Object
-
#initialize ⇒ Object
constructor
Initialize one of the subclasses of Tick with the number of the times the offset should be applied, which is the supplied as the argument.
Methods inherited from DateOffsetType
Methods inherited from DateOffset
Constructor Details
#initialize ⇒ Object
Initialize one of the subclasses of Tick with the number of the times the offset should be applied, which is the supplied as the argument.
104 105 106 |
# File 'lib/daru/date_time/offsets.rb', line 104 def + date_time date_time + @n*multiplier end |
Instance Method Details
#+(date_time) ⇒ Object
Initialize one of the subclasses of Tick with the number of the times the offset should be applied, which is the supplied as the argument.
104 105 106 |
# File 'lib/daru/date_time/offsets.rb', line 104 def + date_time date_time + @n*multiplier end |
#-(date_time) ⇒ Object
108 109 110 |
# File 'lib/daru/date_time/offsets.rb', line 108 def - date_time date_time - @n*multiplier end |