Class: Kreuzberg::DiffLineContext
- Inherits:
-
Data
- Object
- Data
- Kreuzberg::DiffLineContext
- Extended by:
- T::Sig
- Includes:
- DiffLine
- Defined in:
- lib/kreuzberg/native.rb
Overview
Unchanged context line.
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
3231 3232 3233 |
# File 'lib/kreuzberg/native.rb', line 3231 def value @value end |
Class Method Details
.from_hash(hash) ⇒ Object
3247 3248 3249 |
# File 'lib/kreuzberg/native.rb', line 3247 def self.from_hash(hash) new(value: hash[:_0] || hash["_0"]) end |
Instance Method Details
#added? ⇒ Boolean
3241 |
# File 'lib/kreuzberg/native.rb', line 3241 def added? = false |
#context? ⇒ Boolean
3239 |
# File 'lib/kreuzberg/native.rb', line 3239 def context? = true |
#removed? ⇒ Boolean
3243 3244 3245 |
# File 'lib/kreuzberg/native.rb', line 3243 def removed? = false # @param hash [Hash] deserialized from the native extension # @return [self] |