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



3273
3274
3275
# File 'lib/kreuzberg/native.rb', line 3273

def value
  @value
end

Class Method Details

.from_hash(hash) ⇒ Object



3289
3290
3291
# File 'lib/kreuzberg/native.rb', line 3289

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

Instance Method Details

#added?Boolean

Returns:

  • (Boolean)


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

def added? = false

#context?Boolean

Returns:

  • (Boolean)


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

def context? = false

#removed?Boolean

Returns:

  • (Boolean)


3285
3286
3287
# File 'lib/kreuzberg/native.rb', line 3285

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