Class: Ast::Merge::Detector::Mergeable::ExtractedRegion

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

Overview

Extracted region with its content and placeholder.

Instance Attribute Summary collapse

Instance Attribute Details

#configConfig

The configuration that matched this region

Returns:

  • (Config)

    the current value of config



86
87
88
# File 'lib/ast/merge/detector/mergeable.rb', line 86

def config
  @config
end

#merged_contentString?

The merged content (set after merging)

Returns:

  • (String, nil)

    the current value of merged_content



86
87
88
# File 'lib/ast/merge/detector/mergeable.rb', line 86

def merged_content
  @merged_content
end

#placeholderString

The placeholder used in the document

Returns:

  • (String)

    the current value of placeholder



86
87
88
# File 'lib/ast/merge/detector/mergeable.rb', line 86

def placeholder
  @placeholder
end

#regionRegion

The detected region

Returns:

  • (Region)

    the current value of region



86
87
88
# File 'lib/ast/merge/detector/mergeable.rb', line 86

def region
  @region
end