Class: Mxrb::Compare::Change

Inherits:
Data
  • Object
show all
Defined in:
lib/mxrb/compare.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#afterObject (readonly)

Returns the value of attribute after

Returns:

  • (Object)

    the current value of after



7
8
9
# File 'lib/mxrb/compare.rb', line 7

def after
  @after
end

#beforeObject (readonly)

Returns the value of attribute before

Returns:

  • (Object)

    the current value of before



7
8
9
# File 'lib/mxrb/compare.rb', line 7

def before
  @before
end

#operationObject (readonly)

Returns the value of attribute operation

Returns:

  • (Object)

    the current value of operation



7
8
9
# File 'lib/mxrb/compare.rb', line 7

def operation
  @operation
end

#pathObject (readonly)

Returns the value of attribute path

Returns:

  • (Object)

    the current value of path



7
8
9
# File 'lib/mxrb/compare.rb', line 7

def path
  @path
end

Instance Method Details

#added?Boolean

Returns:

  • (Boolean)


8
# File 'lib/mxrb/compare.rb', line 8

def added? = operation == :added

#changed?Boolean

Returns:

  • (Boolean)


10
# File 'lib/mxrb/compare.rb', line 10

def changed? = operation == :changed

#removed?Boolean

Returns:

  • (Boolean)


9
# File 'lib/mxrb/compare.rb', line 9

def removed? = operation == :removed