Exception: JSMin::ParseError Private

Inherits:
RuntimeError
  • Object
show all
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

Instance Method Summary collapse

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

#lineObject

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

#sourceObject

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