Class: Juli::Absyn::Chapter

Inherits:
Node
  • Object
show all
Defined in:
lib/juli/absyn.rb

Overview

NOTE: @dom_id will be used for only Html visitor and contents helper.

Instance Attribute Summary collapse

Attributes inherited from Node

#parent

Instance Method Summary collapse

Constructor Details

#initialize(level, str, blocks) ⇒ Chapter

Returns a new instance of Chapter.



67
68
69
70
71
72
# File 'lib/juli/absyn.rb', line 67

def initialize(level, str, blocks)
  super()
  @level  = level
  @str    = str
  @blocks = blocks
end

Instance Attribute Details

#blocksObject

Returns the value of attribute blocks.



65
66
67
# File 'lib/juli/absyn.rb', line 65

def blocks
  @blocks
end

#dom_idObject

Returns the value of attribute dom_id.



65
66
67
# File 'lib/juli/absyn.rb', line 65

def dom_id
  @dom_id
end

#levelObject

Returns the value of attribute level.



65
66
67
# File 'lib/juli/absyn.rb', line 65

def level
  @level
end

#strObject

Returns the value of attribute str.



65
66
67
# File 'lib/juli/absyn.rb', line 65

def str
  @str
end

Instance Method Details

#accept(visitor) ⇒ Object



74
75
76
# File 'lib/juli/absyn.rb', line 74

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