Class: Xberg::DiffLineContext
- Inherits:
-
Data
- Object
- Data
- Xberg::DiffLineContext
- Extended by:
- T::Sig
- Includes:
- DiffLine
- Defined in:
- lib/xberg/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
3881 3882 3883 |
# File 'lib/xberg/native.rb', line 3881 def value @value end |
Class Method Details
.from_hash(hash) ⇒ Object
3898 3899 3900 |
# File 'lib/xberg/native.rb', line 3898 def self.from_hash(hash) new(value: hash[:_0] || hash["_0"]) end |
Instance Method Details
#added? ⇒ Boolean
3892 |
# File 'lib/xberg/native.rb', line 3892 def added? = false |
#context? ⇒ Boolean
3890 |
# File 'lib/xberg/native.rb', line 3890 def context? = true |
#removed? ⇒ Boolean
3894 3895 3896 |
# File 'lib/xberg/native.rb', line 3894 def removed? = false # @param hash [Hash] deserialized from the native extension # @return [self] |