Module: Ruby2JS::Filter::SEXP
- Included in:
- CJS, CamelCase, ESM, ESMMigration, Functions, JQuery, MatchAll, MiniTestJasmine, Node, Node, Nokogiri, Nokogiri, React, Require, Return, SecureRandom, SecureRandom, TaggedTemplates, Underscore, Vue, Wunderbar
- Defined in:
- lib/ruby2js.rb
Instance Method Summary collapse
-
#s(type, *args) ⇒ Object
construct an AST Node.
- #S(type, *args) ⇒ Object
Instance Method Details
#s(type, *args) ⇒ Object
construct an AST Node
51 52 53 |
# File 'lib/ruby2js.rb', line 51 def s(type, *args) Parser::AST::Node.new type, args end |
#S(type, *args) ⇒ Object
55 56 57 |
# File 'lib/ruby2js.rb', line 55 def S(type, *args) @ast.updated(type, args) end |