Class: RD::NonterminalInline

Inherits:
InlineElement show all
Includes:
NonterminalElement
Defined in:
lib/rd/inline-element.rb

Overview

abstract class.

Direct Known Subclasses

Code, Emphasis, Footnote, Index, Keyboard, Reference, Var

Instance Attribute Summary collapse

Attributes included from NonterminalElement

#temporary_document_structure

Attributes inherited from Element

#parent

Instance Method Summary collapse

Methods included from NonterminalElement

#add_child, #add_child_under_document_struct, #add_children, #add_children_under_document_struct, #add_children_without_document_struct, #build, #each_child, #each_element, #make_child, #push_to_children, #under_temporary_document_structure

Methods inherited from Element

#inspect, #tree

Constructor Details

#initializeNonterminalInline

Returns a new instance of NonterminalInline.



27
28
29
30
# File 'lib/rd/inline-element.rb', line 27

def initialize
  super()
  @content = []
end

Instance Attribute Details

#contentObject (readonly)

Returns the value of attribute content.



25
26
27
# File 'lib/rd/inline-element.rb', line 25

def content
  @content
end

Instance Method Details

#childrenObject



32
33
34
# File 'lib/rd/inline-element.rb', line 32

def children
  @content
end

#to_labelObject



36
37
38
39
40
41
42
# File 'lib/rd/inline-element.rb', line 36

def to_label
  ret = ""
  children.each do |i|
	ret << i.to_label
  end
  ret.strip
end