Method: CcipherBox::SecureBox#initialize

Defined in:
lib/ccipher_box/secure_box.rb

#initialize(rings = nil) ⇒ SecureBox

Returns a new instance of SecureBox.



15
16
17
18
19
20
21
22
23
# File 'lib/ccipher_box/secure_box.rb', line 15

def initialize(rings = nil)
  @rings = {  }
  @keyConfigs = []
  if not_empty?(rings)
    rings.each do |r|
      @rings[r.name] = r
    end
  end
end