Sha256: 2d666c75293599b93b45529e77150f151f4f51a5a51414e1f1436b71cce35a1f

Contents?: true

Size: 490 Bytes

Versions: 3

Compression:

Stored size: 490 Bytes

Contents

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

      handle :module

      children :name, :body

    private

      # Perform dispatch
      #
      # @return [undefined]
      #
      # @api private
      #
      def dispatch
        write(K_MODULE, WS)
        visit(name)
        emit_body
        k_end
        if parent_type != :send
          eol_comment { visit(name) }
        end
      end

    end # Module
  end # Emitter
end # Unparser

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
unparser-0.1.5 lib/unparser/emitter/module.rb
unparser-0.1.4 lib/unparser/emitter/module.rb
unparser-0.1.3 lib/unparser/emitter/module.rb