Sha256: 4bb5c28c6c9e99981d916e798db0fd490d31b33e7dc960d798ad35ba1bb244bb

Contents?: true

Size: 386 Bytes

Versions: 78

Compression:

Stored size: 386 Bytes

Contents

# encoding: UTF-8

# Copyright 2012 Twitter, Inc
# http://www.apache.org/licenses/LICENSE-2.0

module TwitterCldr
  module Tokenizers
    class CompositeToken

      attr_accessor :tokens

      def initialize(tokens)
        @tokens = tokens
      end

      def type
        :composite
      end

      def to_s
        @tokens.map { |t| t.to_s }.join('')
      end

    end
  end
end

Version data entries

78 entries across 78 versions & 3 rubygems

Version Path
twitter_cldr-6.7.0 lib/twitter_cldr/tokenizers/composite_token.rb
twitter_cldr-6.6.2 lib/twitter_cldr/tokenizers/composite_token.rb
twitter_cldr-6.6.1 lib/twitter_cldr/tokenizers/composite_token.rb
twitter_cldr-6.6.0 lib/twitter_cldr/tokenizers/composite_token.rb
twitter_cldr-6.5.0 lib/twitter_cldr/tokenizers/composite_token.rb
twitter_cldr-6.4.0 lib/twitter_cldr/tokenizers/composite_token.rb
twitter_cldr-6.3.0 lib/twitter_cldr/tokenizers/composite_token.rb
twitter_cldr-6.2.0 lib/twitter_cldr/tokenizers/composite_token.rb
twitter_cldr-6.1.0 lib/twitter_cldr/tokenizers/composite_token.rb
metanorma-cli-1.3.4 gems/ruby/2.6.0/gems/twitter_cldr-4.4.5/lib/twitter_cldr/tokenizers/composite_token.rb
twitter_cldr-6.0.2 lib/twitter_cldr/tokenizers/composite_token.rb
metanorma-cli-1.3.3.1 gems/ruby/2.6.0/gems/twitter_cldr-4.4.5/lib/twitter_cldr/tokenizers/composite_token.rb
twitter_cldr-6.0.1 lib/twitter_cldr/tokenizers/composite_token.rb
twitter_cldr-6.0.0 lib/twitter_cldr/tokenizers/composite_token.rb
twitter_cldr-5.4.0 lib/twitter_cldr/tokenizers/composite_token.rb
twitter_cldr-5.3.0 lib/twitter_cldr/tokenizers/composite_token.rb
twitter_cldr-5.2.0 lib/twitter_cldr/tokenizers/composite_token.rb
twitter_cldr-5.1.0 lib/twitter_cldr/tokenizers/composite_token.rb
twitter_cldr-5.0.0 lib/twitter_cldr/tokenizers/composite_token.rb
twitter_cldr-4.4.5 lib/twitter_cldr/tokenizers/composite_token.rb