module CSL::DatePart
Public Instance Methods
day?()
click to toggle source
# File lib/csl/date_part.rb, line 47 def day? name =~ /day/i end
form()
click to toggle source
# File lib/csl/date_part.rb, line 20 def form case when has_form? attributes[:form].to_s when day? 'numeric' else 'long' end end
has_form?()
click to toggle source
# File lib/csl/date_part.rb, line 16 def has_form? attribute?(:form) end
has_name?()
click to toggle source
# File lib/csl/date_part.rb, line 8 def has_name? attribute?(:name) end
month?()
click to toggle source
# File lib/csl/date_part.rb, line 43 def month? name =~ /month/i end
name()
click to toggle source
# File lib/csl/date_part.rb, line 12 def name attributes[:name].to_s end
range_delimiter()
click to toggle source
# File lib/csl/date_part.rb, line 4 def range_delimiter attributes.fetch(:'range-delimiter', '') end
year?()
click to toggle source
# File lib/csl/date_part.rb, line 39 def year? name =~ /year/i end