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)

rubocop:disable Lint/UselessMethodDefinition



3925
3926
3927
# File 'lib/xberg/native.rb', line 3925

def value
  @value
end

Class Method Details

.from_hash(hash) ⇒ Object



3942
3943
3944
# File 'lib/xberg/native.rb', line 3942

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

Instance Method Details

#added?Boolean

Returns:

  • (Boolean)


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

def added? = false

#context?Boolean

Returns:

  • (Boolean)


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

def context? = false

#removed?Boolean

Returns:

  • (Boolean)


3938
3939
3940
# File 'lib/xberg/native.rb', line 3938

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