Class: Tocer::Elements::CommentBlock
- Inherits:
-
Object
- Object
- Tocer::Elements::CommentBlock
- Defined in:
- lib/tocer/elements/comment_block.rb
Overview
Represents a table of contents start and finish comment block.
Instance Method Summary collapse
- #finish ⇒ Object
- #finish_index(collection) ⇒ Object
-
#initialize(start_id: "Tocer[start]", finish_id: "Tocer[finish]", message: "Auto-generated, don't remove.") ⇒ CommentBlock
constructor
A new instance of CommentBlock.
- #start ⇒ Object
- #start_index(collection) ⇒ Object
Constructor Details
#initialize(start_id: "Tocer[start]", finish_id: "Tocer[finish]", message: "Auto-generated, don't remove.") ⇒ CommentBlock
Returns a new instance of CommentBlock.
7 8 9 10 11 12 13 14 |
# File 'lib/tocer/elements/comment_block.rb', line 7 def initialize start_id: "Tocer[start]", finish_id: "Tocer[finish]", message: "Auto-generated, don't remove." @start_id = start_id @finish_id = finish_id = end |
Instance Method Details
#finish ⇒ Object
24 25 26 |
# File 'lib/tocer/elements/comment_block.rb', line 24 def finish comment finish_id, end |
#finish_index(collection) ⇒ Object
28 29 30 |
# File 'lib/tocer/elements/comment_block.rb', line 28 def finish_index collection index collection, finish_id end |
#start ⇒ Object
16 17 18 |
# File 'lib/tocer/elements/comment_block.rb', line 16 def start comment start_id, end |
#start_index(collection) ⇒ Object
20 21 22 |
# File 'lib/tocer/elements/comment_block.rb', line 20 def start_index collection index collection, start_id end |