class CSL::Style::Names
Attributes
delimiter[RW]
Public Class Methods
new(attributes = {}) { |self| ... }
click to toggle source
Calls superclass method
CSL::Node.new
# File lib/csl/style/names.rb, line 14 def initialize(attributes = {}) super(attributes) yield self if block_given? end
Public Instance Methods
has_variable?()
click to toggle source
# File lib/csl/style/names.rb, line 29 def has_variable? attribute?(:variable) end
prefix_label?()
click to toggle source
# File lib/csl/style/names.rb, line 19 def prefix_label? has_label? && has_name? && children.index(label) < children.index(name) end
variable()
click to toggle source
# File lib/csl/style/names.rb, line 33 def variable attributes[:variable].to_s end