Sha256: d53fd48f4b988eccfac645dcd83ddd843b4a0ca0dac0c2647ec186447202e28e

Contents?: true

Size: 462 Bytes

Versions: 11

Compression:

Stored size: 462 Bytes

Contents

# frozen_string_literal: true

module Unparser
  class Emitter
    class Literal
      # Emiter for literal singletons
      class Singleton < self

        handle :self, :true, :false, :nil

      private

        # Perform dispatco
        #
        # @return [undefined]
        #
        # @api private
        #
        def dispatch
          buffer.append(node.type.to_s)
        end

      end # Singleton
    end # Literal
  end # Emitter
end # Unparser

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
unparser-0.4.9 lib/unparser/emitter/literal/singleton.rb
unparser-0.4.8 lib/unparser/emitter/literal/singleton.rb
unparser-0.4.7 lib/unparser/emitter/literal/singleton.rb
unparser-0.4.6 lib/unparser/emitter/literal/singleton.rb
unparser-0.4.5 lib/unparser/emitter/literal/singleton.rb
unparser-0.4.4 lib/unparser/emitter/literal/singleton.rb
unparser-0.4.3 lib/unparser/emitter/literal/singleton.rb
unparser-0.4.2 lib/unparser/emitter/literal/singleton.rb
unparser-0.4.1 lib/unparser/emitter/literal/singleton.rb
unparser-0.4.0 lib/unparser/emitter/literal/singleton.rb
unparser-0.3.0 lib/unparser/emitter/literal/singleton.rb