Class: Kreuzberg::DiffLineContext

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

Overview

Unchanged context line.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#valueObject (readonly)

rubocop:disable Lint/UselessMethodDefinition



3696
3697
3698
# File 'lib/kreuzberg/native.rb', line 3696

def value
  @value
end

Class Method Details

.from_hash(hash) ⇒ Object



3712
3713
3714
# File 'lib/kreuzberg/native.rb', line 3712

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

Instance Method Details

#added?Boolean

Returns:

  • (Boolean)


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

def added? = false

#context?Boolean

Returns:

  • (Boolean)


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

def context? = true

#removed?Boolean

Returns:

  • (Boolean)


3708
3709
3710
# File 'lib/kreuzberg/native.rb', line 3708

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