Sha256: c0db11a0ac11c10641748f6049d438e6a21cc088a8eab8de6e37579fe5314d94

Contents?: true

Size: 385 Bytes

Versions: 24

Compression:

Stored size: 385 Bytes

Contents

# frozen_string_literal: true

module Unparser
  class Emitter
    # Emitter for module nodes
    class Module < self
      include LocalVariableRoot

      handle :module

      children :name, :body

    private

      def dispatch
        write('module ')
        visit(name)
        emit_optional_body(body)
        k_end
      end

    end # Module
  end # Emitter
end # Unparser

Version data entries

24 entries across 24 versions & 2 rubygems

Version Path
unparser-0.6.15 lib/unparser/emitter/module.rb
unparser-0.6.14 lib/unparser/emitter/module.rb
unparser-0.6.13 lib/unparser/emitter/module.rb
unparser-0.6.12 lib/unparser/emitter/module.rb
unparser-0.6.10 lib/unparser/emitter/module.rb
unparser-0.6.9 lib/unparser/emitter/module.rb
unparser-0.6.8 lib/unparser/emitter/module.rb
devcycle-ruby-server-sdk-2.0.0 vendor/bundle/ruby/3.0.0/gems/unparser-0.6.7/lib/unparser/emitter/module.rb
unparser-0.6.7 lib/unparser/emitter/module.rb
unparser-0.6.6 lib/unparser/emitter/module.rb
unparser-0.6.5 lib/unparser/emitter/module.rb
unparser-0.6.4 lib/unparser/emitter/module.rb
unparser-0.6.3 lib/unparser/emitter/module.rb
unparser-0.6.2 lib/unparser/emitter/module.rb
unparser-0.6.1 lib/unparser/emitter/module.rb
unparser-0.6.0 lib/unparser/emitter/module.rb
unparser-0.5.7 lib/unparser/emitter/module.rb
unparser-0.5.6 lib/unparser/emitter/module.rb
unparser-0.5.5 lib/unparser/emitter/module.rb
unparser-0.5.4 lib/unparser/emitter/module.rb