Sha256: 8f289d75bd94411ae85403c4148644c19f116342279cfb13ffe6aecf8e3af6f0

Contents?: true

Size: 225 Bytes

Versions: 19

Compression:

Stored size: 225 Bytes

Contents

module Smshelper
  class Config

    def initialize(interfaces = {})
      interfaces.each do |interface, config|
        self.class.send(:define_method, interface) do
          config
        end
      end
    end
  end
end

Version data entries

19 entries across 19 versions & 1 rubygems

Version Path
smshelper-0.4.12 lib/smshelper/config.rb
smshelper-0.4.11 lib/smshelper/config.rb
smshelper-0.4.10 lib/smshelper/config.rb
smshelper-0.4.9 lib/smshelper/config.rb
smshelper-0.4.8 lib/smshelper/config.rb
smshelper-0.4.7 lib/smshelper/config.rb
smshelper-0.4.6 lib/smshelper/config.rb
smshelper-0.4.5 lib/smshelper/config.rb
smshelper-0.4.0 lib/smshelper/config.rb
smshelper-0.3.1 lib/smshelper/config.rb
smshelper-0.3.0 lib/smshelper/config.rb
smshelper-0.2.10 lib/smshelper/config.rb
smshelper-0.2.9 lib/smshelper/config.rb
smshelper-0.2.8 lib/smshelper/config.rb
smshelper-0.2.7 lib/smshelper/config.rb
smshelper-0.2.6 lib/smshelper/config.rb
smshelper-0.2.5 lib/smshelper/config.rb
smshelper-0.2.4 lib/smshelper/config.rb
smshelper-0.2.3 lib/smshelper/config.rb