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



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

def config
  @config
end

#merged_contentString?

The merged content (set after merging)

Returns:

  • (String, nil)

    the current value of merged_content



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

def merged_content
  @merged_content
end

#placeholderString

The placeholder used in the document

Returns:

  • (String)

    the current value of placeholder



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

def placeholder
  @placeholder
end

#regionRegion

The detected region

Returns:

  • (Region)

    the current value of region



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

def region
  @region
end