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-3.1.1 lib/recog/fingerprint/test.rb
recog-3.1.0 lib/recog/fingerprint/test.rb
recog-3.0.3 lib/recog/fingerprint/test.rb
recog-3.0.2 lib/recog/fingerprint/test.rb
recog-3.0.1 lib/recog/fingerprint/test.rb
recog-2.3.23 lib/recog/fingerprint/test.rb
recog-2.3.22 lib/recog/fingerprint/test.rb
recog-2.3.21 lib/recog/fingerprint/test.rb
recog-2.3.20 lib/recog/fingerprint/test.rb
recog-2.3.19 lib/recog/fingerprint/test.rb
recog-2.3.18 lib/recog/fingerprint/test.rb
recog-2.3.17 lib/recog/fingerprint/test.rb
recog-2.3.16 lib/recog/fingerprint/test.rb
recog-2.3.15 lib/recog/fingerprint/test.rb
recog-intrigue-2.3.14 lib/recog/fingerprint/test.rb
recog-2.3.14 lib/recog/fingerprint/test.rb
recog-2.3.13 lib/recog/fingerprint/test.rb
recog-2.3.12 lib/recog/fingerprint/test.rb
recog-2.3.11 lib/recog/fingerprint/test.rb
recog-2.3.10 lib/recog/fingerprint/test.rb