Class: RD::Verb

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

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



56
57
58
# File 'lib/rd/inline-element.rb', line 56

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

#to_labelObject



60
61
62
# File 'lib/rd/inline-element.rb', line 60

def to_label
  @content.strip
end