class RD::Reference

Attributes

label[RW]
set_label[RW]

Public Class Methods

new(label) click to toggle source
Calls superclass method RD::NonterminalInline::new
# File lib/rd/inline-element.rb, line 105
def initialize(label)
  super()
  @content = []
  @label = label.renew_label
end
new_from_label(label) click to toggle source
# File lib/rd/inline-element.rb, line 111
def Reference.new_from_label(label)
  ref = Reference.new(label)
  ref.add_children(label.to_reference_content)
  return ref
end
new_from_label_under_document_struct(label, struct) click to toggle source
# File lib/rd/inline-element.rb, line 117
def Reference.new_from_label_under_document_struct(label, struct)
  ref = Reference.new(label)
  ref.add_children_under_document_struct(label.to_reference_content,
                                         struct)
  return ref
end
new_from_label_without_document_struct(label) click to toggle source
# File lib/rd/inline-element.rb, line 124
def Reference.new_from_label_without_document_struct(label)
  ref = Reference.new(label)
  ref.add_children_without_document_struct(label.to_reference_content)
  return ref
end

Public Instance Methods

accept(visitor) click to toggle source
# File lib/rd/inline-element.rb, line 130
def accept(visitor)
  visitor.visit_Reference(self)
end
result_of_apply_method_of(visitor, children) click to toggle source
# File lib/rd/inline-element.rb, line 134
def result_of_apply_method_of(visitor, children)
  label.result_of_apply_method_of(visitor, self, children)
end
to_label() click to toggle source
# File lib/rd/inline-element.rb, line 138
def to_label
  @label.to_label
end