Class: Sourcerer::Sync::BlockParser::Block

Inherits:
Struct
  • Object
show all
Defined in:
lib/sourcerer/sync/block_parser.rb

Overview

A tagged region extracted from a file

Instance Attribute Summary collapse

Instance Attribute Details

#close_lineObject (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)

#contentObject (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_lineObject (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)

#tagObject (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)