Class: Psych::Merge::PartialTemplateMerger::Result
- Inherits:
-
Object
- Object
- Psych::Merge::PartialTemplateMerger::Result
- Defined in:
- lib/psych/merge/partial_template_merger.rb
Overview
Result of a 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.
45 46 47 48 49 50 51 |
# File 'lib/psych/merge/partial_template_merger.rb', line 45 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.
43 44 45 |
# File 'lib/psych/merge/partial_template_merger.rb', line 43 def changed @changed end |
#content ⇒ Object (readonly)
Returns the value of attribute content.
43 44 45 |
# File 'lib/psych/merge/partial_template_merger.rb', line 43 def content @content end |
#has_key_path ⇒ Object (readonly)
Returns the value of attribute has_key_path.
43 44 45 |
# File 'lib/psych/merge/partial_template_merger.rb', line 43 def has_key_path @has_key_path end |
#message ⇒ Object (readonly)
Returns the value of attribute message.
43 44 45 |
# File 'lib/psych/merge/partial_template_merger.rb', line 43 def @message end |
#stats ⇒ Object (readonly)
Returns the value of attribute stats.
43 44 45 |
# File 'lib/psych/merge/partial_template_merger.rb', line 43 def stats @stats end |
Instance Method Details
#key_path_found? ⇒ Boolean
53 54 55 |
# File 'lib/psych/merge/partial_template_merger.rb', line 53 def key_path_found? has_key_path end |