Class: Juicer::JsLint::Error

Inherits:
Object
  • Object
show all
Defined in:
lib/juicer/jslint.rb

Overview

A JsLint error

Instance Attribute Summary collapse

Instance Method Summary collapse

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(message, code)
  @message = message
  @code = code
end

Instance Attribute Details

#codeObject

Returns the value of attribute code


90
91
92
# File 'lib/juicer/jslint.rb', line 90

def code
  @code
end

#messageObject

Returns the value of attribute message


90
91
92
# File 'lib/juicer/jslint.rb', line 90

def message
  @message
end

Instance Method Details

#to_sObject


97
98
99
# File 'lib/juicer/jslint.rb', line 97

def to_s
  "#@message\n#@code"
end