Sha256: 4da5021d164b813eda435ae1a2140a23eebabcebb75d8f9d5ee1ebcd2be0ead6

Contents?: true

Size: 558 Bytes

Versions: 1

Compression:

Stored size: 558 Bytes

Contents


module Ccrypto
  class PublicKey
    attr_accessor :native_pubKey
    def initialize(pubkey)
      @native_pubKey = pubkey
    end

    def method_missing(mtd, *args, &block)
      if @native_pubKey.nil?
        super
      else
        @native_pubKey.send(mtd, *args, &block)
      end
    end

    def respond_to_missing?(mtd, *args, &block)
      if @native_pubKey.nil?
        false
      else
        @native_pubKey.respond_to?(mtd)
      end
    end

  end # PublicKey

  class ECCPublicKey < PublicKey; end
  class RSAPublicKey < PublicKey; end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
ccrypto-0.1.0 lib/ccrypto/public_key.rb