Sha256: ecacd303e7f5d06225fb51ba1a7298e83eadc4e9bb2c09a9608df1739013be7d

Contents?: true

Size: 214 Bytes

Versions: 4

Compression:

Stored size: 214 Bytes

Contents

require "delegate"

module Attentive
  class Phrase < SimpleDelegator

    def initialize(tokens)
      super tokens
    end

    def to_s
      join
    end

    def inspect
      "\"#{to_s}\""
    end

  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
attentive-0.2.0 lib/attentive/phrase.rb
attentive-0.1.1 lib/attentive/phrase.rb
attentive-0.1.0 lib/attentive/phrase.rb
attentive-0.1.0.beta1 lib/attentive/phrase.rb