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.
92 93 94 95 |
# File 'lib/juicer/jslint.rb', line 92 def initialize(, code) @message = @code = code end |
Instance Attribute Details
#code ⇒ Object
Returns the value of attribute code.
90 91 92 |
# File 'lib/juicer/jslint.rb', line 90 def code @code end |
#message ⇒ Object
Returns the value of attribute message.
90 91 92 |
# File 'lib/juicer/jslint.rb', line 90 def @message end |
Instance Method Details
#to_s ⇒ Object
97 98 99 |
# File 'lib/juicer/jslint.rb', line 97 def to_s "#@message\n#@code" end |