Exception: SourceMap::JSMin::ParseError

Inherits:
RuntimeError
  • Object
show all
Defined in:
lib/source_map/jsmin.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(err, source, line) ⇒ ParseError

Returns a new instance of ParseError.



68
69
70
71
72
# File 'lib/source_map/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

Returns the value of attribute line.



67
68
69
# File 'lib/source_map/jsmin.rb', line 67

def line
  @line
end

#sourceObject

Returns the value of attribute source.



67
68
69
# File 'lib/source_map/jsmin.rb', line 67

def source
  @source
end