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



4181
4182
4183
# File 'lib/xberg/native.rb', line 4181

def value
  @value
end

Class Method Details

.from_hash(hash) ⇒ Object



4198
4199
4200
# File 'lib/xberg/native.rb', line 4198

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

Instance Method Details

#added?Boolean

Returns:

  • (Boolean)


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

def added? = false

#context?Boolean

Returns:

  • (Boolean)


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

def context? = false

#removed?Boolean

Returns:

  • (Boolean)


4194
4195
4196
# File 'lib/xberg/native.rb', line 4194

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