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



4256
4257
4258
# File 'lib/xberg/native.rb', line 4256

def value
  @value
end

Class Method Details

.from_hash(hash) ⇒ Object



4273
4274
4275
# File 'lib/xberg/native.rb', line 4273

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

Instance Method Details

#added?Boolean

Returns:

  • (Boolean)


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

def added? = false

#context?Boolean

Returns:

  • (Boolean)


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

def context? = false

#removed?Boolean

Returns:

  • (Boolean)


4269
4270
4271
# File 'lib/xberg/native.rb', line 4269

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