Class: GitDiffMap::Line
- Inherits:
-
GitDiffParser::Line
- Object
- GitDiffParser::Line
- GitDiffMap::Line
- Defined in:
- lib/git_diff_map/line.rb
Instance Attribute Summary collapse
-
#content ⇒ Object
readonly
Returns the value of attribute content.
Instance Method Summary collapse
-
#body ⇒ Object
trim ‘+` or
-prefix. -
#type ⇒ String
+ or -.
Instance Attribute Details
#content ⇒ Object (readonly)
Returns the value of attribute content.
10 11 12 |
# File 'lib/git_diff_map/line.rb', line 10 def content @content end |
Instance Method Details
#body ⇒ Object
trim ‘+` or - prefix
13 14 15 |
# File 'lib/git_diff_map/line.rb', line 13 def body content[1..-1] end |
#type ⇒ String
Returns + or -.
18 19 20 |
# File 'lib/git_diff_map/line.rb', line 18 def type content[0] end |