Class: Mxrb::Compare::Change
- Inherits:
-
Data
- Object
- Data
- Mxrb::Compare::Change
- Defined in:
- lib/mxrb/compare.rb
Instance Attribute Summary collapse
-
#after ⇒ Object
readonly
Returns the value of attribute after.
-
#before ⇒ Object
readonly
Returns the value of attribute before.
-
#operation ⇒ Object
readonly
Returns the value of attribute operation.
-
#path ⇒ Object
readonly
Returns the value of attribute path.
Instance Method Summary collapse
Instance Attribute Details
#after ⇒ Object (readonly)
Returns the value of attribute after
7 8 9 |
# File 'lib/mxrb/compare.rb', line 7 def after @after end |
#before ⇒ Object (readonly)
Returns the value of attribute before
7 8 9 |
# File 'lib/mxrb/compare.rb', line 7 def before @before end |
#operation ⇒ Object (readonly)
Returns the value of attribute operation
7 8 9 |
# File 'lib/mxrb/compare.rb', line 7 def operation @operation end |
#path ⇒ Object (readonly)
Returns the value of attribute path
7 8 9 |
# File 'lib/mxrb/compare.rb', line 7 def path @path end |
Instance Method Details
#added? ⇒ Boolean
8 |
# File 'lib/mxrb/compare.rb', line 8 def added? = operation == :added |
#changed? ⇒ Boolean
10 |
# File 'lib/mxrb/compare.rb', line 10 def changed? = operation == :changed |
#removed? ⇒ Boolean
9 |
# File 'lib/mxrb/compare.rb', line 9 def removed? = operation == :removed |