lib/csl/locale/date.rb in csl-1.0.0.pre1 vs lib/csl/locale/date.rb in csl-1.0.0.pre2
- old
+ new
@@ -2,11 +2,11 @@
class Locale
# A localized Date comprises a set of formatting rules for dates.
class Date < Node
- attr_struct :form, *Schema.attr(:font, :delimiter, :textcase)
+ attr_struct :form, :'text-case', *Schema.attr(:font, :delimiter)
attr_children :'date-part'
alias parts date_part
alias locale parent
@@ -30,11 +30,11 @@
# DatePart represent the localized formatting options for an individual
# date part (day, month, or year).
class DatePart < Node
has_no_children
- attr_struct :name, :form, :'range-delimiter',
- *Schema.attr(:affixes, :textcase, :font, :periods)
+ attr_struct :name, :form, :'range-delimiter', :'text-case',
+ *Schema.attr(:affixes, :font, :periods)
%w{ day month year }.each do |part|
define_method("#{part}?") do
attributes.name == part
end