Class: Kreuzberg::DiffLineRemoved

Inherits:
Data
  • Object
show all
Extended by:
T::Sig
Includes:
DiffLine
Defined in:
lib/kreuzberg/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)

rubocop:disable Lint/UselessMethodDefinition



3738
3739
3740
# File 'lib/kreuzberg/native.rb', line 3738

def value
  @value
end

Class Method Details

.from_hash(hash) ⇒ Object



3754
3755
3756
# File 'lib/kreuzberg/native.rb', line 3754

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

Instance Method Details

#added?Boolean

Returns:

  • (Boolean)


3748
# File 'lib/kreuzberg/native.rb', line 3748

def added? = false

#context?Boolean

Returns:

  • (Boolean)


3746
# File 'lib/kreuzberg/native.rb', line 3746

def context? = false

#removed?Boolean

Returns:

  • (Boolean)


3750
3751
3752
# File 'lib/kreuzberg/native.rb', line 3750

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