Class: Mxrb::Compare::Result
- Inherits:
-
Struct
- Object
- Struct
- Mxrb::Compare::Result
- Defined in:
- lib/mxrb/compare.rb
Instance Attribute Summary collapse
-
#changes ⇒ Object
Returns the value of attribute changes.
-
#differences ⇒ Object
Returns the value of attribute differences.
Instance Method Summary collapse
Instance Attribute Details
#changes ⇒ Object
Returns the value of attribute changes
13 14 15 |
# File 'lib/mxrb/compare.rb', line 13 def changes @changes end |
#differences ⇒ Object
Returns the value of attribute differences
13 14 15 |
# File 'lib/mxrb/compare.rb', line 13 def differences @differences end |
Instance Method Details
#added ⇒ Object
15 |
# File 'lib/mxrb/compare.rb', line 15 def added = changes.select(&:added?) |
#changed ⇒ Object
17 |
# File 'lib/mxrb/compare.rb', line 17 def changed = changes.select(&:changed?) |
#identical? ⇒ Boolean
14 |
# File 'lib/mxrb/compare.rb', line 14 def identical? = differences.empty? |
#removed ⇒ Object
16 |
# File 'lib/mxrb/compare.rb', line 16 def removed = changes.select(&:removed?) |