class CSL::Style::Date
Attributes
Public Class Methods
Source
# File lib/csl/style/date.rb, line 17 def initialize(attributes = {}) super(attributes, &nil) children[:'date-part'] = [] yield self if block_given? end
Calls superclass method
CSL::Node::new
Public Instance Methods
Source
# File lib/csl/style/date.rb, line 25 def date_parts_filter attributes[:'date-parts'].to_s.split(/-/) end
@return [Array<String>] the localized date parts to be used
Also aliased as: parts_filter
Source
# File lib/csl/style/date.rb, line 30 def delimiter attributes.fetch(:delimiter, '') end
Source
# File lib/csl/style/date.rb, line 59 def has_date_parts? !date_parts.empty? end
Also aliased as: has_parts?
Source
# File lib/csl/style/date.rb, line 42 def has_form? attribute?(:form) end
Also aliased as: localized?
Source
# File lib/csl/style/date.rb, line 64 def has_overrides? localized? && has_parts? end
Source
# File lib/csl/style/date.rb, line 34 def has_variable? attribute?(:variable) end