Sha256: f4ce99c37783b4975280614d15126bed4c3e89c5c350fcd9c88216af31048f7b
Contents?: true
Size: 532 Bytes
Versions: 5
Compression:
Stored size: 532 Bytes
Contents
module ToSource class Emitter # base class for utility emitters class Util < self # Emitter for delimited bodies class DelimitedBody < self private # Perform dispatch # # @return [undefined] # # @api private # def dispatch body = node max = body.length - 1 body.each_with_index do |member, index| visit(member) emit(', ') if index < max end end end end end end
Version data entries
5 entries across 5 versions & 1 rubygems