Class: Sourcerer::Sync::BlockParser::Block
- Inherits:
-
Struct
- Object
- Struct
- Sourcerer::Sync::BlockParser::Block
- Defined in:
- lib/sourcerer/sync/block_parser.rb
Overview
A tagged region extracted from a file
Instance Attribute Summary collapse
-
#close_line ⇒ Object
readonly
The complete closing marker line, including newline.
-
#content ⇒ Object
readonly
Everything between the open and close markers.
-
#open_line ⇒ Object
readonly
The complete opening marker line, including newline.
-
#tag ⇒ Object
readonly
The tag name (e.g. ‘universal-agency`).
Instance Attribute Details
#close_line ⇒ Object (readonly)
The complete closing marker line, including newline
18 |
# File 'lib/sourcerer/sync/block_parser.rb', line 18 Block = Struct.new(:tag, :open_line, :content, :close_line, keyword_init: true) |
#content ⇒ Object (readonly)
Everything between the open and close markers
18 |
# File 'lib/sourcerer/sync/block_parser.rb', line 18 Block = Struct.new(:tag, :open_line, :content, :close_line, keyword_init: true) |
#open_line ⇒ Object (readonly)
The complete opening marker line, including newline
18 |
# File 'lib/sourcerer/sync/block_parser.rb', line 18 Block = Struct.new(:tag, :open_line, :content, :close_line, keyword_init: true) |
#tag ⇒ Object (readonly)
The tag name (e.g. ‘universal-agency`)
18 |
# File 'lib/sourcerer/sync/block_parser.rb', line 18 Block = Struct.new(:tag, :open_line, :content, :close_line, keyword_init: true) |