Sha256: df4cb2e8994dffffb07825d1cdca0a2384b7f094b574f5c700acac6079acf5e1

Contents?: true

Size: 490 Bytes

Versions: 13

Compression:

Stored size: 490 Bytes

Contents

module Restfulie
  module Client
    module Mikyung
      # Concatenates pure text in order to build messages
      # that are used as patterns.
      # Usage:
      # When there is a machine
      #
      # Will invoke concatenate 'machine' with 'a' with 'is' with 'there'
      class Concatenator
        attr_reader :content
        def initialize(content, *args)
          @content = args.inject(content) { |buf, arg| buf << " " << arg.content }
        end
      end
    end
  end
end

Version data entries

13 entries across 13 versions & 2 rubygems

Version Path
restfulie-nosqlite-1.0.4 lib/restfulie/client/mikyung/concatenator.rb
restfulie-1.1.1 lib/restfulie/client/mikyung/concatenator.rb
restfulie-1.1.0 lib/restfulie/client/mikyung/concatenator.rb
restfulie-nosqlite-1.0.3 lib/restfulie/client/mikyung/concatenator.rb
restfulie-1.0.3 lib/restfulie/client/mikyung/concatenator.rb
restfulie-1.0.0 lib/restfulie/client/mikyung/concatenator.rb
restfulie-1.0.0.beta5 lib/restfulie/client/mikyung/concatenator.rb
restfulie-1.0.0.beta4 lib/restfulie/client/mikyung/concatenator.rb
restfulie-1.0.0.beta1 lib/restfulie/client/mikyung/concatenator.rb
restfulie-0.1.0.beta1 lib/restfulie/client/mikyung/concatenator.rb
restfulie-0.9.3 lib/restfulie/client/mikyung/concatenator.rb
restfulie-0.9.1 lib/restfulie/client/mikyung/concatenator.rb
restfulie-0.8.1 lib/restfulie/client/mikyung/concatenator.rb