Class: RD::MethodListItem::Term

Inherits:
Element
  • Object
show all
Includes:
LabeledElement, TerminalElement
Defined in:
lib/rd/methodlist.rb

Instance Attribute Summary collapse

Attributes inherited from Element

#parent

Instance Method Summary collapse

Methods included from LabeledElement

#to_label

Methods included from TerminalElement

#children

Methods inherited from Element

#inspect, #tree

Constructor Details

#initialize(content = "") ⇒ Term

Returns a new instance of Term.



38
39
40
# File 'lib/rd/methodlist.rb', line 38

def initialize(content = "")
	@content = content
end

Instance Attribute Details

#contentObject (readonly)

Returns the value of attribute content.



36
37
38
# File 'lib/rd/methodlist.rb', line 36

def content
  @content
end

Instance Method Details

#accept(visitor) ⇒ Object



47
48
49
# File 'lib/rd/methodlist.rb', line 47

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

#each_element {|_self| ... } ⇒ Object Also known as: each

Yields:

  • (_self)

Yield Parameters:



42
43
44
# File 'lib/rd/methodlist.rb', line 42

def each_element
	yield(self)
end