Class: Juicer::JsLint::Error
- Inherits:
-
Object
- Object
- Juicer::JsLint::Error
- Defined in:
- lib/juicer/jslint.rb
Overview
A JsLint error
Instance Attribute Summary collapse
-
#code ⇒ Object
Returns the value of attribute code.
-
#message ⇒ Object
Returns the value of attribute message.
Instance Method Summary collapse
-
#initialize(message, code) ⇒ Error
constructor
A new instance of Error.
- #to_s ⇒ Object
Constructor Details
#initialize(message, code) ⇒ Error
Returns a new instance of Error.
80 81 82 83 |
# File 'lib/juicer/jslint.rb', line 80 def initialize(, code) @message = @code = code end |
Instance Attribute Details
#code ⇒ Object
Returns the value of attribute code.
78 79 80 |
# File 'lib/juicer/jslint.rb', line 78 def code @code end |
#message ⇒ Object
Returns the value of attribute message.
78 79 80 |
# File 'lib/juicer/jslint.rb', line 78 def @message end |
Instance Method Details
#to_s ⇒ Object
85 86 87 |
# File 'lib/juicer/jslint.rb', line 85 def to_s "#@message\n#@code" end |