Class: Juli::Absyn::Chapter
Overview
NOTE: @dom_id will be used for only Html visitor and contents helper.
Instance Attribute Summary collapse
-
#blocks ⇒ Object
Returns the value of attribute blocks.
-
#dom_id ⇒ Object
Returns the value of attribute dom_id.
-
#level ⇒ Object
Returns the value of attribute level.
-
#str ⇒ Object
Returns the value of attribute str.
Attributes inherited from Node
Instance Method Summary collapse
- #accept(visitor) ⇒ Object
-
#initialize(level, str, blocks) ⇒ Chapter
constructor
A new instance of Chapter.
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
#blocks ⇒ Object
Returns the value of attribute blocks.
65 66 67 |
# File 'lib/juli/absyn.rb', line 65 def blocks @blocks end |
#dom_id ⇒ Object
Returns the value of attribute dom_id.
65 66 67 |
# File 'lib/juli/absyn.rb', line 65 def dom_id @dom_id end |
#level ⇒ Object
Returns the value of attribute level.
65 66 67 |
# File 'lib/juli/absyn.rb', line 65 def level @level end |
#str ⇒ Object
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 |