Class: Xberg::DiffLineRemoved

Inherits:
Data
  • Object
show all
Extended by:
T::Sig
Includes:
DiffLine
Defined in:
lib/xberg/native.rb

Overview

Line removed from the "before" version.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#valueObject (readonly)

Returns the value of attribute value

Returns:

  • (Object)

    the current value of value



1093
1094
1095
# File 'lib/xberg/native.rb', line 1093

def value
  @value
end

Class Method Details

.from_hash(hash) ⇒ Object



1109
1110
1111
# File 'lib/xberg/native.rb', line 1109

def self.from_hash(hash)
  new(value: hash[:text] || hash["text"])
end

Instance Method Details

#added?Boolean

Returns:

  • (Boolean)


1103
# File 'lib/xberg/native.rb', line 1103

def added? = false

#context?Boolean

Returns:

  • (Boolean)


1101
# File 'lib/xberg/native.rb', line 1101

def context? = false

#removed?Boolean

Returns:

  • (Boolean)


1105
1106
1107
# File 'lib/xberg/native.rb', line 1105

def removed? = true
# @param hash [Hash] deserialized from the native extension
# @return [self]