Class: RuboCop::Git::Line

Inherits:
Struct
  • Object
show all
Defined in:
lib/rubocop/git/line.rb

Overview

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#contentObject

Returns the value of attribute content

Returns:

  • (Object)

    the current value of content



3
4
5
# File 'lib/rubocop/git/line.rb', line 3

def content
  @content
end

#line_numberObject

Returns the value of attribute line_number

Returns:

  • (Object)

    the current value of line_number



3
4
5
# File 'lib/rubocop/git/line.rb', line 3

def line_number
  @line_number
end

#patch_positionObject

Returns the value of attribute patch_position

Returns:

  • (Object)

    the current value of patch_position



3
4
5
# File 'lib/rubocop/git/line.rb', line 3

def patch_position
  @patch_position
end

Instance Method Details

#==(other_line) ⇒ Object



4
5
6
# File 'lib/rubocop/git/line.rb', line 4

def ==(other_line)
  content == other_line.content
end