Sha256: a188c07ba88f66d94172ce172a26c512d79ba0dd3d1cab704316fcc729bb0f71
Contents?: true
Size: 1017 Bytes
Versions: 1
Compression:
Stored size: 1017 Bytes
Contents
module CSL class Style class Number < Node attr_struct :variable, :form, :'text-case', *Schema.attr(:affixes, :display, :font) has_no_children # @return [Boolean] whether or not the number's format is set to # :numeric; also returns true if the number's form attribute is not # set or nil. def numeric? !attribute?(:form) || attributes.form.to_sym == :numeric end # @return [Boolean] whether or not the number's format is set to :ordinal def ordinal? attribute?(:form) && attributes.form.to_sym == :ordinal end # @return [Boolean] whether or not the number's format is set to :'long-ordinal' def long_ordinal? attribute?(:form) && attributes.form.to_sym == :'long-ordinal' end # @return [Boolean] whether or not the number's format is set to :roman def roman? attribute?(:form) && attributes.form.to_sym == :roman end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
csl-1.0.0.pre6 | lib/csl/style/number.rb |