Exception: JSMin::ParseError Private
- Inherits:
-
RuntimeError
- Object
- RuntimeError
- JSMin::ParseError
- Defined in:
- lib/hanami/assets/compressors/jsmin.rb
This class is part of a private API. You should avoid using this class if possible, as it may be removed or be changed in the future.
Instance Attribute Summary collapse
- #line ⇒ Object private
- #source ⇒ Object private
Instance Method Summary collapse
-
#initialize(err, source, line) ⇒ ParseError
constructor
private
A new instance of ParseError.
Constructor Details
#initialize(err, source, line) ⇒ ParseError
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
Returns a new instance of ParseError.
68 69 70 71 72 |
# File 'lib/hanami/assets/compressors/jsmin.rb', line 68 def initialize(err, source, line) @source = source, @line = line super "JSMin Parse Error: #{err} at line #{line} of #{source}" end |
Instance Attribute Details
#line ⇒ Object
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
67 68 69 |
# File 'lib/hanami/assets/compressors/jsmin.rb', line 67 def line @line end |
#source ⇒ Object
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
67 68 69 |
# File 'lib/hanami/assets/compressors/jsmin.rb', line 67 def source @source end |