Class: Ast::Merge::RegionMergeable::ExtractedRegion

Inherits:
Struct
  • Object
show all
Defined in:
lib/ast/merge/region_mergeable.rb

Overview

Extracted region with its content and placeholder.

Instance Attribute Summary collapse

Instance Attribute Details

#configRegionConfig

The configuration that matched this region

Returns:



82
83
84
# File 'lib/ast/merge/region_mergeable.rb', line 82

def config
  @config
end

#merged_contentString?

The merged content (set after merging)

Returns:

  • (String, nil)

    the current value of merged_content



82
83
84
# File 'lib/ast/merge/region_mergeable.rb', line 82

def merged_content
  @merged_content
end

#placeholderString

The placeholder used in the document

Returns:

  • (String)

    the current value of placeholder



82
83
84
# File 'lib/ast/merge/region_mergeable.rb', line 82

def placeholder
  @placeholder
end

#regionRegion

The detected region

Returns:

  • (Region)

    the current value of region



82
83
84
# File 'lib/ast/merge/region_mergeable.rb', line 82

def region
  @region
end