lib/configureasy/configurable.rb
def load_config(file_basename, options = {})
    name = options[:as] || file_basename
    path = options[:path] || './config'
    filename = File.join path, "#{file_basename}.yml"
    _configurable_init(name, filename)
  end
# dinamically create method for access config data.
# Params:
#  [+file_basename+]:: config file name (by default in *config* directory)
#  [+as+]:: generated method name (by default same as file_basename)
#  [+path+]:: config path (by default './config')
dinamically create method for access config data.
dinamically create method for access config data .
def load_config(file_basename, options = {})
    name = options[:as] || file_basename
    path = options[:path] || './config'
    filename = File.join path, "#{file_basename}.yml"
    _configurable_init(name, filename)
  end
def load_config ( file_basename , options = { } ) name = options [ :as ] || file_basename path = options [ :path ] || './config' filename = File . join path , "#{file_basename}.yml" _configurable_init ( name , filename ) end
dinamically create method for access config data.
dinamically create method for access config data .
file_basename
options