class Ruby2JS::Token
Attributes
ast[RW]
loc[RW]
Public Class Methods
new(string, ast)
click to toggle source
Calls superclass method
# File lib/ruby2js/serializer.rb, line 6 def initialize(string, ast) super(string.to_s) @ast = ast @loc = ast.location if ast end