Class: GPGME::SigNotation

Inherits:
Object
  • Object
show all
Defined in:
lib/gpgme/ffi/sig_notation.rb

Class Method Summary collapse

Class Method Details

.new_from_struct(struct) ⇒ Object



3
4
5
6
7
8
9
10
# File 'lib/gpgme/ffi/sig_notation.rb', line 3

def self.new_from_struct(struct)
  instance = allocate

  instance.instance_exec do
    @name  = struct[:name]
    @value = struct[:value]
  end
end