Module: Squid::Settings

Included in:
Graph
Defined in:
lib/squid/settings.rb

Instance Method Summary collapse

Instance Method Details

#has_settings(*keys) ⇒ Object


6
7
8
9
10
11
12
13
# File 'lib/squid/settings.rb', line 6

def has_settings(*keys)
  keys.each do |key|
    define_method key do
      @settings.fetch key, Squid.configuration.public_send(key)
    end
    private key
  end
end