Sha256: 0a3f0c21e70038b380f4943bb2afa1132460b510c0e8432dcd6a273b161aaf72

Contents?: true

Size: 452 Bytes

Versions: 4

Compression:

Stored size: 452 Bytes

Contents

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

      handle :module

      children :name, :body

    private

      # Perform dispatch
      #
      # @return [undefined]
      #
      # @api private
      #
      def dispatch
        write(K_MODULE, WS)
        visit(name)
        emit_body
        k_end
      end

    end # Module
  end # Emitter
end # Unparser

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
unparser-0.2.8 lib/unparser/emitter/module.rb
unparser-0.2.7 lib/unparser/emitter/module.rb
unparser-0.2.6 lib/unparser/emitter/module.rb
unparser-0.2.5 lib/unparser/emitter/module.rb