Sha256: b6268131cb1c7150e479c80269cfff65410301602508c1ad438d6f5b3ba98e77
Contents?: true
Size: 611 Bytes
Versions: 40
Compression:
Stored size: 611 Bytes
Contents
# frozen_string_literal: true require 'opal/rewriters/base' module Opal module Rewriters class DumpArgs < Base def on_def(node) node = super(node) _mid, args, _body = *node node.updated(nil, nil, meta: { original_args: args }) end def on_defs(node) node = super(node) _recv, _mid, args, _body = *node node.updated(nil, nil, meta: { original_args: args }) end def on_iter(node) node = super(node) args, _body = *node node.updated(nil, nil, meta: { original_args: args }) end end end end
Version data entries
40 entries across 40 versions & 1 rubygems