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
3696 3697 3698 |
# File 'lib/kreuzberg/native.rb', line 3696 def value @value end |
Class Method Details
.from_hash(hash) ⇒ Object
3712 3713 3714 |
# File 'lib/kreuzberg/native.rb', line 3712 def self.from_hash(hash) new(value: hash[:_0] || hash["_0"]) end |
Instance Method Details
#added? ⇒ Boolean
3706 |
# File 'lib/kreuzberg/native.rb', line 3706 def added? = false |
#context? ⇒ Boolean
3704 |
# File 'lib/kreuzberg/native.rb', line 3704 def context? = true |
#removed? ⇒ Boolean
3708 3709 3710 |
# File 'lib/kreuzberg/native.rb', line 3708 def removed? = false # @param hash [Hash] deserialized from the native extension # @return [self] |