Sha256: 48313474380dabf525767d552b6f52ddc850cefbc61e34854d7278ee862ec754

Contents?: true

Size: 305 Bytes

Versions: 2

Compression:

Stored size: 305 Bytes

Contents

module Stamp
  module Emitters
    class String
      attr_reader :value

      def initialize(value)
        @value = value
      end

      def format(target)
        value
      end

      def <<(emitter)
        value << emitter.value
      end

      def field
        nil
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
stamp-0.6.0 lib/stamp/emitters/string.rb
stamp-0.5.0 lib/stamp/emitters/string.rb