Class: Kreuzberg::DiffLineRemoved
- Inherits:
-
Data
- Object
- Data
- Kreuzberg::DiffLineRemoved
- Extended by:
- T::Sig
- Includes:
- DiffLine
- Defined in:
- lib/kreuzberg/native.rb
Overview
Line removed from the “before” version.
Instance Attribute Summary collapse
-
#value ⇒ Object
readonly
rubocop:disable Lint/UselessMethodDefinition.
Class Method Summary collapse
Instance Method Summary collapse
Instance Attribute Details
#value ⇒ Object (readonly)
rubocop:disable Lint/UselessMethodDefinition
3273 3274 3275 |
# File 'lib/kreuzberg/native.rb', line 3273 def value @value end |
Class Method Details
.from_hash(hash) ⇒ Object
3289 3290 3291 |
# File 'lib/kreuzberg/native.rb', line 3289 def self.from_hash(hash) new(value: hash[:_0] || hash["_0"]) end |
Instance Method Details
#added? ⇒ Boolean
3283 |
# File 'lib/kreuzberg/native.rb', line 3283 def added? = false |
#context? ⇒ Boolean
3281 |
# File 'lib/kreuzberg/native.rb', line 3281 def context? = false |
#removed? ⇒ Boolean
3285 3286 3287 |
# File 'lib/kreuzberg/native.rb', line 3285 def removed? = true # @param hash [Hash] deserialized from the native extension # @return [self] |