Class: Cldr::Format::Datetime::Base

Inherits:
Object
  • Object
show all
Defined in:
lib/cldr/format/datetime/base.rb

Direct Known Subclasses

Cldr::Format::Date, Time

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#calendarObject (readonly)

Returns the value of attribute calendar.



5
6
7
# File 'lib/cldr/format/datetime/base.rb', line 5

def calendar
  @calendar
end