Exception: Ruby2JS::Error
- Inherits:
-
NotImplementedError
- Object
- NotImplementedError
- Ruby2JS::Error
- Defined in:
- lib/ruby2js/converter.rb
Instance Method Summary collapse
-
#initialize(message, ast) ⇒ Error
constructor
A new instance of Error.
Constructor Details
#initialize(message, ast) ⇒ Error
Returns a new instance of Error.
5 6 7 8 9 10 11 12 |
# File 'lib/ruby2js/converter.rb', line 5 def initialize(, ast) if ast.loc += ' at ' + ast.loc.expression.source_buffer.name.to_s += ':' + ast.loc.expression.line.inspect += ':' + ast.loc.expression.column.to_s end super() end |