Sha256: 01cd4a1706d04a4b46af00b60ad78e29821768503777a3eac49e5919571899bd

Contents?: true

Size: 645 Bytes

Versions: 22

Compression:

Stored size: 645 Bytes

Contents

module Unparser
  class Emitter

    # Emitter for zsuper nodes
    class ZSuper < self

      handle :zsuper

    private

      # Perform dispatch
      #
      # @return [undefined]
      #
      # @api private
      #
      def dispatch
        write(K_SUPER)
      end

    end # ZSuper

    # Emitter for super nodes
    class Super < self

      handle :super

    private

      # Perform dispatch
      #
      # @return [undefined]
      #
      # @api private
      #
      def dispatch
        write(K_SUPER)
        parentheses do
          delimited(children)
        end
      end

    end # Super

  end # Emitter
end # Unparser

Version data entries

22 entries across 22 versions & 1 rubygems

Version Path
unparser-0.1.5 lib/unparser/emitter/super.rb
unparser-0.1.4 lib/unparser/emitter/super.rb
unparser-0.1.3 lib/unparser/emitter/super.rb
unparser-0.1.2 lib/unparser/emitter/super.rb
unparser-0.1.1 lib/unparser/emitter/super.rb
unparser-0.1.0 lib/unparser/emitter/super.rb
unparser-0.0.18 lib/unparser/emitter/super.rb
unparser-0.0.16 lib/unparser/emitter/super.rb
unparser-0.0.15 lib/unparser/emitter/super.rb
unparser-0.0.14 lib/unparser/emitter/super.rb
unparser-0.0.13 lib/unparser/emitter/super.rb
unparser-0.0.12 lib/unparser/emitter/super.rb
unparser-0.0.11 lib/unparser/emitter/super.rb
unparser-0.0.10 lib/unparser/emitter/super.rb
unparser-0.0.8 lib/unparser/emitter/super.rb
unparser-0.0.7 lib/unparser/emitter/super.rb
unparser-0.0.6 lib/unparser/emitter/super.rb
unparser-0.0.5 lib/unparser/emitter/super.rb
unparser-0.0.4 lib/unparser/emitter/super.rb
unparser-0.0.3 lib/unparser/emitter/super.rb