Class: Exercism::Analyzers::Analyzer::Feedback
- Inherits:
-
Struct
- Object
- Struct
- Exercism::Analyzers::Analyzer::Feedback
- Defined in:
- lib/exercism-analysis/analyzers/analyzer.rb
Instance Attribute Summary collapse
-
#column ⇒ Object
Returns the value of attribute column.
-
#end_column ⇒ Object
Returns the value of attribute end_column.
-
#end_line ⇒ Object
Returns the value of attribute end_line.
-
#line ⇒ Object
Returns the value of attribute line.
-
#replacement ⇒ Object
Returns the value of attribute replacement.
-
#src ⇒ Object
Returns the value of attribute src.
-
#type ⇒ Object
Returns the value of attribute type.
Class Method Summary collapse
Instance Attribute Details
#column ⇒ Object
Returns the value of attribute column
22 23 24 |
# File 'lib/exercism-analysis/analyzers/analyzer.rb', line 22 def column @column end |
#end_column ⇒ Object
Returns the value of attribute end_column
22 23 24 |
# File 'lib/exercism-analysis/analyzers/analyzer.rb', line 22 def end_column @end_column end |
#end_line ⇒ Object
Returns the value of attribute end_line
22 23 24 |
# File 'lib/exercism-analysis/analyzers/analyzer.rb', line 22 def end_line @end_line end |
#line ⇒ Object
Returns the value of attribute line
22 23 24 |
# File 'lib/exercism-analysis/analyzers/analyzer.rb', line 22 def line @line end |
#replacement ⇒ Object
Returns the value of attribute replacement
22 23 24 |
# File 'lib/exercism-analysis/analyzers/analyzer.rb', line 22 def replacement @replacement end |
#src ⇒ Object
Returns the value of attribute src
22 23 24 |
# File 'lib/exercism-analysis/analyzers/analyzer.rb', line 22 def src @src end |
#type ⇒ Object
Returns the value of attribute type
22 23 24 |
# File 'lib/exercism-analysis/analyzers/analyzer.rb', line 22 def type @type end |
Class Method Details
.from_line(type, line, line_no) ⇒ Object
28 29 30 |
# File 'lib/exercism-analysis/analyzers/analyzer.rb', line 28 def self.from_line(type, line, line_no) new(type, line, nil, line_no, 0, line_no, line.length) end |
.from_src(type, src, replacement = nil) ⇒ Object
24 25 26 |
# File 'lib/exercism-analysis/analyzers/analyzer.rb', line 24 def self.from_src(type, src, replacement=nil) new(type, src.extract, replacement, src.line, src.column, src.end_line, src.end_column) end |