Sha256: 8f011c05639e1153bc54bc58c98467325408e03f59316035820c8d7998378948

Contents?: true

Size: 359 Bytes

Versions: 83

Compression:

Stored size: 359 Bytes

Contents

class Recog::Fingerprint::Test
  attr_accessor :content
  attr_accessor :attributes
  def initialize(content, attributes=[])
    @attributes = attributes

    if @attributes['_encoding'] && @attributes['_encoding'] == 'base64'
      @content = content.to_s.unpack('m*').first
    else
      @content = content
    end
  end

  def to_s
    content
  end
end

Version data entries

83 entries across 83 versions & 2 rubygems

Version Path
recog-2.1.39 lib/recog/fingerprint/test.rb
recog-2.1.38 lib/recog/fingerprint/test.rb
recog-2.1.37 lib/recog/fingerprint/test.rb
recog-2.1.36 lib/recog/fingerprint/test.rb
recog-2.1.35 lib/recog/fingerprint/test.rb
recog-2.1.34 lib/recog/fingerprint/test.rb
recog-2.1.33 lib/recog/fingerprint/test.rb
recog-2.1.32 lib/recog/fingerprint/test.rb
recog-2.1.31 lib/recog/fingerprint/test.rb
recog-2.1.30 lib/recog/fingerprint/test.rb
recog-2.1.29 lib/recog/fingerprint/test.rb
recog-2.1.28 lib/recog/fingerprint/test.rb
recog-2.1.27 lib/recog/fingerprint/test.rb
recog-2.1.26 lib/recog/fingerprint/test.rb
recog-2.1.25 lib/recog/fingerprint/test.rb
recog-2.1.24 lib/recog/fingerprint/test.rb
recog-2.1.23 lib/recog/fingerprint/test.rb
recog-2.1.22 lib/recog/fingerprint/test.rb
recog-2.1.21 lib/recog/fingerprint/test.rb
recog-2.1.20 lib/recog/fingerprint/test.rb