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.



80
81
82
83
# File 'lib/juicer/jslint.rb', line 80

def initialize(message, code)
  @message = message
  @code = code
end

Instance Attribute Details

#codeObject

Returns the value of attribute code.



78
79
80
# File 'lib/juicer/jslint.rb', line 78

def code
  @code
end

#messageObject

Returns the value of attribute message.



78
79
80
# File 'lib/juicer/jslint.rb', line 78

def message
  @message
end

Instance Method Details

#to_sObject



85
86
87
# File 'lib/juicer/jslint.rb', line 85

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