Class: Smshelper::Config
- Inherits:
-
Object
- Object
- Smshelper::Config
- Defined in:
- lib/smshelper/config.rb
Instance Method Summary collapse
-
#initialize(interfaces = {}) ⇒ Config
constructor
A new instance of Config.
Constructor Details
#initialize(interfaces = {}) ⇒ Config
Returns a new instance of Config.
4 5 6 7 8 9 10 |
# File 'lib/smshelper/config.rb', line 4 def initialize(interfaces = {}) interfaces.each do |interface, config| self.class.send(:define_method, interface) do config end end end |