module AppmospheresAudit

Constants

VERSION

Public Class Methods

configure() { |self| ... } click to toggle source
# File lib/appmospheres_audit.rb, line 9
def self.configure
  yield(self) if block_given?
end
method_missing(symbol, *args) click to toggle source

set or get the configuration parameters

# File lib/appmospheres_audit.rb, line 21
def method_missing(symbol, *args)
  if (method = symbol.to_s).sub!(/\=$/, '')
    options[method.to_sym] = args.first
  else
    options[method.to_sym]
  end
end
options() click to toggle source

stores a hash of options given to the configure block.

# File lib/appmospheres_audit.rb, line 16
def options
  @options ||= {}
end