struct
Agate::Diff::Line
- Agate::Diff::Line
- Struct
- Value
- Object
Overview
A single line within a hunk.
Defined in:
agate/patch.crConstructors
Instance Method Summary
-
#addition? : Bool
Returns true if this line is an addition.
-
#binary? : Bool
Returns true if this line is binary.
- #clone
- #content : String
-
#context? : Bool
Returns true if this line is a context line.
- #copy_with(origin _origin = @origin, content _content = @content, old_lineno _old_lineno = @old_lineno, new_lineno _new_lineno = @new_lineno)
-
#deletion? : Bool
Returns true if this line is a deletion.
-
#file_header? : Bool
Returns true if this line is a file header.
-
#hunk_header? : Bool
Returns true if this line is a hunk header.
- #new_lineno : Int32
- #old_lineno : Int32
- #origin : Char
Constructor Detail
def self.new(origin : Char, content : String, old_lineno : Int32, new_lineno : Int32)
#
Instance Method Detail
def copy_with(origin _origin = @origin, content _content = @content, old_lineno _old_lineno = @old_lineno, new_lineno _new_lineno = @new_lineno)
#