Sha256: 3a31b20f83a58a9d8fd7858c427346a50d9ccf837f61704f6278fd054f745d1d
Contents?: true
Size: 608 Bytes
Versions: 6
Compression:
Stored size: 608 Bytes
Contents
module CSL class Style class Label < Node attr_struct :variable, :form, :plural, *Schema.attr(:formatting, :periods) has_no_children def has_variable? attribute?(:variable) end def variable attributes[:variable] end def locator? variable.to_s =~ /^locator$/i end def page? variable.to_s =~ /^page$/i end def always_pluralize? attributes[:plural].to_s =~ /^always$/i end def never_pluralize? attributes[:plural].to_s =~ /^never$/i end end end end
Version data entries
6 entries across 6 versions & 1 rubygems