Class: Cldr::Format::Datetime::Base
- Inherits:
-
Object
- Object
- Cldr::Format::Datetime::Base
- Defined in:
- lib/cldr/format/datetime/base.rb
Direct Known Subclasses
Instance Attribute Summary collapse
-
#calendar ⇒ Object
readonly
Returns the value of attribute calendar.
Instance Method Summary collapse
-
#initialize(format, calendar) ⇒ Base
constructor
A new instance of Base.
Constructor Details
#initialize(format, calendar) ⇒ Base
Returns a new instance of Base.
7 8 9 10 |
# File 'lib/cldr/format/datetime/base.rb', line 7 def initialize(format, calendar) @calendar = calendar compile(format) end |
Instance Attribute Details
#calendar ⇒ Object (readonly)
Returns the value of attribute calendar.
5 6 7 |
# File 'lib/cldr/format/datetime/base.rb', line 5 def calendar @calendar end |