Module: Keychain::Protocols
- Defined in:
- lib/keychain/protocols.rb
Overview
Procotol constants for use when creating/finding a Keychain::Item of type internet password
Class Method Summary collapse
Class Method Details
.attach_protocol(name) ⇒ Object
7 8 9 10 11 |
# File 'lib/keychain/protocols.rb', line 7 def self.attach_protocol name Sec.send :attach_variable, name, :pointer constant_name = name.to_s.gsub('kSecAttrProtocol', '').upcase const_set constant_name, CF::Base.typecast(Sec.send(name)) end |