class BeValidAsset::Configuration

Public Class Methods

cache_path=(path) click to toggle source
# File lib/be_valid_asset/configuration.rb, line 20
def self.cache_path=(path)
  @@config[:cache_path] = path
  unless File.directory? path
    FileUtils.mkdir_p path
  end
end
method_missing(name, *args) click to toggle source
Calls superclass method
# File lib/be_valid_asset/configuration.rb, line 10
def self.method_missing(name, *args)
  if name.to_s =~ /^(.*)=$/
    @@config[$1.to_sym] = args[0]
  elsif @@config.has_key?(name)
    return @@config[name]
  else
    super
  end
end