class CSL::Style::Text
Attributes
formatting[R]
Public Instance Methods
has_macro?()
click to toggle source
# File lib/csl/style/text.rb, line 22 def has_macro? attribute?(:macro) end
has_term?()
click to toggle source
# File lib/csl/style/text.rb, line 34 def has_term? attribute?(:term) end
has_value?()
click to toggle source
# File lib/csl/style/text.rb, line 38 def has_value? attribute?(:value) end
has_variable?()
click to toggle source
# File lib/csl/style/text.rb, line 10 def has_variable? attribute?(:variable) end
macro()
click to toggle source
@return [Macro, nil]
# File lib/csl/style/text.rb, line 27 def macro raise "failed to resolve macro #{attributes[:macro].inspect}" unless !root? && root.respond_to?(:macros) root.macros[attributes[:macro]] end
value()
click to toggle source
# File lib/csl/style/text.rb, line 42 def value attributes[:value] end
variable()
click to toggle source
# File lib/csl/style/text.rb, line 14 def variable attributes[:variable] end
variable_options()
click to toggle source
# File lib/csl/style/text.rb, line 18 def variable_options attributes_for :form end