Class: Ast::Merge::KeyPathPartialTemplateMergerBase::Result

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

Overview

Result of a key-path partial template merge

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(content:, has_key_path:, changed:, stats: {}, message: nil) ⇒ Result

Returns a new instance of Result.



27
28
29
30
31
32
33
# File 'lib/ast/merge/key_path_partial_template_merger_base.rb', line 27

def initialize(content:, has_key_path:, changed:, stats: {}, message: nil)
  @content = content
  @has_key_path = has_key_path
  @changed = changed
  @stats = stats
  @message = message
end

Instance Attribute Details

#changedObject (readonly)

Returns the value of attribute changed.



25
26
27
# File 'lib/ast/merge/key_path_partial_template_merger_base.rb', line 25

def changed
  @changed
end

#contentObject (readonly)

Returns the value of attribute content.



25
26
27
# File 'lib/ast/merge/key_path_partial_template_merger_base.rb', line 25

def content
  @content
end

#has_key_pathObject (readonly)

Returns the value of attribute has_key_path.



25
26
27
# File 'lib/ast/merge/key_path_partial_template_merger_base.rb', line 25

def has_key_path
  @has_key_path
end

#messageObject (readonly)

Returns the value of attribute message.



25
26
27
# File 'lib/ast/merge/key_path_partial_template_merger_base.rb', line 25

def message
  @message
end

#statsObject (readonly)

Returns the value of attribute stats.



25
26
27
# File 'lib/ast/merge/key_path_partial_template_merger_base.rb', line 25

def stats
  @stats
end

Instance Method Details

#key_path_found?Boolean

Returns:

  • (Boolean)


35
36
37
# File 'lib/ast/merge/key_path_partial_template_merger_base.rb', line 35

def key_path_found?
  has_key_path
end