Module: Ruby2JS::Filter::SEXP

Instance Method Summary collapse

Instance Method Details

#s(type, *args) ⇒ Object

construct an AST Node



59
60
61
# File 'lib/ruby2js.rb', line 59

def s(type, *args)
  Parser::AST::Node.new type, args
end

#S(type, *args) ⇒ Object

update existing node



64
65
66
# File 'lib/ruby2js.rb', line 64

def S(type, *args)
  @ast.updated(type, args)
end