Class: RD::StringElement

Inherits:
TerminalInline show all
Includes:
LabelComposable
Defined in:
lib/rd2odt/rdtool/rd/inline-element.rb,
lib/rd2odt/rdtool/rd/rd-struct.rb

Overview

NonterminalInline

Instance Attribute Summary

Attributes inherited from TerminalInline

#content

Attributes inherited from Element

#parent

Instance Method Summary collapse

Methods inherited from TerminalInline

#initialize

Methods included from TerminalElement

#children, #each_element

Methods inherited from Element

#initialize, #inspect, #tree

Constructor Details

This class inherits a constructor from RD::TerminalInline

Instance Method Details

#accept(visitor) ⇒ Object



46
47
48
# File 'lib/rd2odt/rdtool/rd/inline-element.rb', line 46

def accept(visitor)
  visitor.visit_StringElement(self)
end

#to_labelObject



50
51
52
# File 'lib/rd2odt/rdtool/rd/inline-element.rb', line 50

def to_label
  @content
end