Sha256: e34157451870ae104316a6552dc3cf0e897ade40aecdab1a5fc4d37470800e58

Contents?: true

Size: 321 Bytes

Versions: 31

Compression:

Stored size: 321 Bytes

Contents

require 'asir'

require 'base64'

module ASIR
  class Coder
    class Base64 < self
      def _encode obj
        raise TypeError unless String === obj
        ::Base64.encode64(obj)
      end
      def _decode obj
        raise TypeError unless String === obj
        ::Base64.decode64(obj)
      end
    end
  end
end

Version data entries

31 entries across 31 versions & 1 rubygems

Version Path
asir-1.2.11 lib/asir/coder/base64.rb
asir-1.2.10 lib/asir/coder/base64.rb
asir-1.2.9 lib/asir/coder/base64.rb
asir-1.2.8 lib/asir/coder/base64.rb
asir-1.2.7 lib/asir/coder/base64.rb
asir-1.2.6 lib/asir/coder/base64.rb
asir-1.2.5 lib/asir/coder/base64.rb
asir-1.2.3 lib/asir/coder/base64.rb
asir-1.2.2 lib/asir/coder/base64.rb
asir-1.2.1 lib/asir/coder/base64.rb
asir-1.2.0 lib/asir/coder/base64.rb
asir-1.1.12 lib/asir/coder/base64.rb
asir-1.1.11 lib/asir/coder/base64.rb
asir-1.1.10 lib/asir/coder/base64.rb
asir-1.1.9 lib/asir/coder/base64.rb
asir-1.1.8 lib/asir/coder/base64.rb
asir-1.1.7 lib/asir/coder/base64.rb
asir-1.1.6 lib/asir/coder/base64.rb
asir-1.1.5 lib/asir/coder/base64.rb
asir-1.1.4 lib/asir/coder/base64.rb