class Braise::Settings

Public Class Methods

configure(opts={}) click to toggle source
# File lib/braise.rb, line 15
def self.configure(opts={})
  opts.each {|k,v| @@config[k.to_sym] = v if @@valid_config_keys.include? k.to_sym}
end
get_options(opts={}) click to toggle source
# File lib/braise.rb, line 11
def self.get_options(opts={})
  Settings.stringify_options(@@config.merge(opts))
end

Private Class Methods

stringify_options(opts) click to toggle source
# File lib/braise.rb, line 21
def self.stringify_options(opts)
  return opts.values.join(' ').strip
end