Class: Leg::Diff::DiffLine
- Inherits:
-
Object
- Object
- Leg::Diff::DiffLine
- Defined in:
- lib/leg/diff.rb
Instance Attribute Summary collapse
-
#line ⇒ Object
readonly
Returns the value of attribute line.
-
#type ⇒ Object
Returns the value of attribute type.
Instance Method Summary collapse
- #empty! ⇒ Object
- #empty? ⇒ Boolean
-
#initialize(type, line) ⇒ DiffLine
constructor
A new instance of DiffLine.
- #omit! ⇒ Object
- #omit? ⇒ Boolean
Constructor Details
#initialize(type, line) ⇒ DiffLine
Returns a new instance of DiffLine.
21 22 23 24 |
# File 'lib/leg/diff.rb', line 21 def initialize(type, line) @type = type @line = line end |
Instance Attribute Details
#line ⇒ Object (readonly)
Returns the value of attribute line.
18 19 20 |
# File 'lib/leg/diff.rb', line 18 def line @line end |
#type ⇒ Object
Returns the value of attribute type.
18 19 20 |
# File 'lib/leg/diff.rb', line 18 def type @type end |
Instance Method Details
#empty! ⇒ Object
26 |
# File 'lib/leg/diff.rb', line 26 def empty!; @empty = true; end |
#empty? ⇒ Boolean
27 |
# File 'lib/leg/diff.rb', line 27 def empty?; @empty; end |
#omit! ⇒ Object
29 |
# File 'lib/leg/diff.rb', line 29 def omit!; @omit = true; end |
#omit? ⇒ Boolean
30 |
# File 'lib/leg/diff.rb', line 30 def omit?; @omit; end |