Class: Ccrypto::PublicKey
- Inherits:
-
Object
- Object
- Ccrypto::PublicKey
- Defined in:
- lib/ccrypto/public_key.rb
Direct Known Subclasses
Instance Attribute Summary collapse
-
#native_pubKey ⇒ Object
Returns the value of attribute native_pubKey.
Instance Method Summary collapse
-
#initialize(pubkey) ⇒ PublicKey
constructor
A new instance of PublicKey.
- #method_missing(mtd, *args, &block) ⇒ Object
- #respond_to_missing?(mtd, *args, &block) ⇒ Boolean
Constructor Details
#initialize(pubkey) ⇒ PublicKey
Returns a new instance of PublicKey.
6 7 8 |
# File 'lib/ccrypto/public_key.rb', line 6 def initialize(pubkey) @native_pubKey = pubkey end |
Dynamic Method Handling
This class handles dynamic methods through the method_missing method
#method_missing(mtd, *args, &block) ⇒ Object
10 11 12 13 14 15 16 |
# File 'lib/ccrypto/public_key.rb', line 10 def method_missing(mtd, *args, &block) if @native_pubKey.nil? super else @native_pubKey.send(mtd, *args, &block) end end |
Instance Attribute Details
#native_pubKey ⇒ Object
Returns the value of attribute native_pubKey.
5 6 7 |
# File 'lib/ccrypto/public_key.rb', line 5 def native_pubKey @native_pubKey end |
Instance Method Details
#respond_to_missing?(mtd, *args, &block) ⇒ Boolean
18 19 20 21 22 23 24 |
# File 'lib/ccrypto/public_key.rb', line 18 def respond_to_missing?(mtd, *args, &block) if @native_pubKey.nil? false else @native_pubKey.respond_to?(mtd) end end |