Class: Typocop::Patch
- Inherits:
-
Object
- Object
- Typocop::Patch
- Defined in:
- lib/typocop/patch.rb
Instance Attribute Summary collapse
-
#added_lines ⇒ Object
readonly
Returns the value of attribute added_lines.
-
#lines ⇒ Object
readonly
Returns the value of attribute lines.
-
#path ⇒ Object
readonly
Returns the value of attribute path.
Instance Method Summary collapse
-
#initialize(path, lines, added_lines) ⇒ Patch
constructor
A new instance of Patch.
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_lines ⇒ Object (readonly)
Returns the value of attribute added_lines.
3 4 5 |
# File 'lib/typocop/patch.rb', line 3 def added_lines @added_lines end |
#lines ⇒ Object (readonly)
Returns the value of attribute lines.
3 4 5 |
# File 'lib/typocop/patch.rb', line 3 def lines @lines end |
#path ⇒ Object (readonly)
Returns the value of attribute path.
3 4 5 |
# File 'lib/typocop/patch.rb', line 3 def path @path end |