Class: Xberg::DiffLineRemoved
- Inherits:
-
Data
- Object
- Data
- Xberg::DiffLineRemoved
- Extended by:
- T::Sig
- Includes:
- DiffLine
- Defined in:
- lib/xberg/native.rb
Overview
Line removed from the "before" version.
Instance Attribute Summary collapse
-
#value ⇒ Object
readonly
Returns the value of attribute value.
Class Method Summary collapse
Instance Method Summary collapse
Instance Attribute Details
#value ⇒ Object (readonly)
Returns the value of attribute value
1093 1094 1095 |
# File 'lib/xberg/native.rb', line 1093 def value @value end |
Class Method Details
.from_hash(hash) ⇒ Object
1109 1110 1111 |
# File 'lib/xberg/native.rb', line 1109 def self.from_hash(hash) new(value: hash[:text] || hash["text"]) end |
Instance Method Details
#added? ⇒ Boolean
1103 |
# File 'lib/xberg/native.rb', line 1103 def added? = false |
#context? ⇒ Boolean
1101 |
# File 'lib/xberg/native.rb', line 1101 def context? = false |
#removed? ⇒ Boolean
1105 1106 1107 |
# File 'lib/xberg/native.rb', line 1105 def removed? = true # @param hash [Hash] deserialized from the native extension # @return [self] |