Class: Confium::CFM
- Inherits:
-
Object
- Object
- Confium::CFM
- Defined in:
- lib/confium/cfm.rb
Instance Attribute Summary collapse
-
#ptr ⇒ Object
readonly
Returns the value of attribute ptr.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize ⇒ CFM
constructor
A new instance of CFM.
- #load_plugin(name, path) ⇒ Object
Constructor Details
#initialize ⇒ CFM
Returns a new instance of CFM.
7 8 9 10 11 12 13 |
# File 'lib/confium/cfm.rb', line 7 def initialize pptr = FFI::MemoryPointer.new(:pointer) Confium.call_ffi(:cfm_create, pptr) @ptr = FFI::AutoPointer.new(pptr.read_pointer, self.class.method(:destroy)) load_plugin('botan', ENV['CFM_HASH_BOTAN_PLUGIN_PATH']) end |
Instance Attribute Details
#ptr ⇒ Object (readonly)
Returns the value of attribute ptr.
5 6 7 |
# File 'lib/confium/cfm.rb', line 5 def ptr @ptr end |