Class: Take::Lint::Error
- Inherits:
-
Object
- Object
- Take::Lint::Error
- Defined in:
- lib/take/lint/error.rb
Instance Attribute Summary collapse
-
#column ⇒ Object
Returns the value of attribute column.
-
#description ⇒ Object
Returns the value of attribute description.
-
#file ⇒ Object
Returns the value of attribute file.
-
#line ⇒ Object
Returns the value of attribute line.
-
#type ⇒ Object
Returns the value of attribute type.
Instance Method Summary collapse
-
#initialize(data = {}) ⇒ Error
constructor
A new instance of Error.
Constructor Details
#initialize(data = {}) ⇒ Error
Returns a new instance of Error.
11 12 13 14 15 16 17 18 19 20 21 |
# File 'lib/take/lint/error.rb', line 11 def initialize(data = {}) data.each do |key, value| key = :"#{key}=" if respond_to? key send key, value else raise ArgumentError, "Bad key given" end end end |
Instance Attribute Details
#column ⇒ Object
Returns the value of attribute column.
8 9 10 |
# File 'lib/take/lint/error.rb', line 8 def column @column end |
#description ⇒ Object
Returns the value of attribute description.
9 10 11 |
# File 'lib/take/lint/error.rb', line 9 def description @description end |
#file ⇒ Object
Returns the value of attribute file.
6 7 8 |
# File 'lib/take/lint/error.rb', line 6 def file @file end |
#line ⇒ Object
Returns the value of attribute line.
7 8 9 |
# File 'lib/take/lint/error.rb', line 7 def line @line end |
#type ⇒ Object
Returns the value of attribute type.
5 6 7 |
# File 'lib/take/lint/error.rb', line 5 def type @type end |