Class: Ast::Merge::KeyPathPartialTemplateMergerBase::Result
- Inherits:
-
Object
- Object
- Ast::Merge::KeyPathPartialTemplateMergerBase::Result
- 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
-
#changed ⇒ Object
readonly
Returns the value of attribute changed.
-
#content ⇒ Object
readonly
Returns the value of attribute content.
-
#has_key_path ⇒ Object
readonly
Returns the value of attribute has_key_path.
-
#message ⇒ Object
readonly
Returns the value of attribute message.
-
#stats ⇒ Object
readonly
Returns the value of attribute stats.
Instance Method Summary collapse
-
#initialize(content:, has_key_path:, changed:, stats: {}, message: nil) ⇒ Result
constructor
A new instance of Result.
- #key_path_found? ⇒ Boolean
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 = end |
Instance Attribute Details
#changed ⇒ Object (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 |
#content ⇒ Object (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_path ⇒ Object (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 |
#message ⇒ Object (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 end |
#stats ⇒ Object (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
35 36 37 |
# File 'lib/ast/merge/key_path_partial_template_merger_base.rb', line 35 def key_path_found? has_key_path end |