Class: Xberg::DiffLineContext

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



3887
3888
3889
# File 'lib/xberg/native.rb', line 3887

def value
  @value
end

Class Method Details

.from_hash(hash) ⇒ Object



3904
3905
3906
# File 'lib/xberg/native.rb', line 3904

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

Instance Method Details

#added?Boolean

Returns:

  • (Boolean)


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

def added? = false

#context?Boolean

Returns:

  • (Boolean)


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

def context? = true

#removed?Boolean

Returns:

  • (Boolean)


3900
3901
3902
# File 'lib/xberg/native.rb', line 3900

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