Class: ExcelAbstraction::Date
- Inherits:
-
Float
- Object
- Float
- ExcelAbstraction::Date
- Defined in:
- lib/excel_templating/excel_abstraction/date.rb
Constant Summary collapse
- ADJUSTMENT =
::Date.parse("1900-03-01")
- REFERENCE =
::Date.parse("1900-01-01")
Instance Attribute Summary collapse
-
#value ⇒ Object
readonly
Returns the value of attribute value.
Instance Method Summary collapse
-
#initialize(raw_value) ⇒ Date
constructor
A new instance of Date.
- #to_excel_date ⇒ Object
Constructor Details
#initialize(raw_value) ⇒ Date
Returns a new instance of Date.
10 11 12 |
# File 'lib/excel_templating/excel_abstraction/date.rb', line 10 def initialize(raw_value) super(convert(raw_value)) end |
Instance Attribute Details
#value ⇒ Object (readonly)
Returns the value of attribute value.
8 9 10 |
# File 'lib/excel_templating/excel_abstraction/date.rb', line 8 def value @value end |
Instance Method Details
#to_excel_date ⇒ Object
14 15 16 |
# File 'lib/excel_templating/excel_abstraction/date.rb', line 14 def to_excel_date self end |