Class: VPNMaker::KeyConfig
- Inherits:
-
Object
- Object
- VPNMaker::KeyConfig
- Defined in:
- lib/vpnmaker/key_config.rb
Instance Method Summary collapse
- #[](k) ⇒ Object
-
#initialize(path) ⇒ KeyConfig
constructor
A new instance of KeyConfig.
Constructor Details
#initialize(path) ⇒ KeyConfig
Returns a new instance of KeyConfig.
3 4 5 |
# File 'lib/vpnmaker/key_config.rb', line 3 def initialize(path) @config = YAML.load_file(path) end |
Instance Method Details
#[](k) ⇒ Object
7 |
# File 'lib/vpnmaker/key_config.rb', line 7 def [](k); @config[k]; end |