class CSL::Style::Names
Attributes
Public Class Methods
Source
# File lib/csl/style/names.rb, line 15 def initialize(attributes = {}) super(attributes) yield self if block_given? end
Calls superclass method
CSL::Node::new
Public Instance Methods
Source
# File lib/csl/style/names.rb, line 30 def has_variable? attribute?(:variable) end
Source
# File lib/csl/style/names.rb, line 20 def prefix_label? has_label? && has_name? && children.index(label) < children.index(name) end
Source
# File lib/csl/style/names.rb, line 34 def variable attributes[:variable].to_s end