Class: Typocop::Patch

Inherits:
Object
  • Object
show all
Defined in:
lib/typocop/patch.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(path, lines, added_lines) ⇒ Patch



5
6
7
8
9
# File 'lib/typocop/patch.rb', line 5

def initialize(path, lines, added_lines)
  @path = path
  @lines = lines
  @added_lines = added_lines
end

Instance Attribute Details

#added_linesObject (readonly)

Returns the value of attribute added_lines.



3
4
5
# File 'lib/typocop/patch.rb', line 3

def added_lines
  @added_lines
end

#linesObject (readonly)

Returns the value of attribute lines.



3
4
5
# File 'lib/typocop/patch.rb', line 3

def lines
  @lines
end

#pathObject (readonly)

Returns the value of attribute path.



3
4
5
# File 'lib/typocop/patch.rb', line 3

def path
  @path
end