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 15 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 30 def has_variable? attribute?(:variable) end
prefix_label?()
click to toggle source
# File lib/csl/style/names.rb, line 20 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 34 def variable attributes[:variable].to_s end