Module: AppmospheresAudit
- Defined in:
- lib/appmospheres_audit.rb,
lib/appmospheres_audit/version.rb,
lib/generators/appmospheres_audit/config_generator.rb,
lib/generators/appmospheres_audit/migration_generator.rb
Defined Under Namespace
Modules: ControllerTrail, RecordTrail, SupportTrail Classes: ConfigGenerator, MigrationGenerator
Constant Summary collapse
- VERSION =
"0.1.2"
Class Method Summary collapse
- .configure {|_self| ... } ⇒ Object
-
.method_missing(symbol, *args) ⇒ Object
set or get the configuration parameters.
-
.options ⇒ Object
stores a hash of options given to the
configure
block.
Class Method Details
.configure {|_self| ... } ⇒ Object
9 10 11 |
# File 'lib/appmospheres_audit.rb', line 9 def self.configure yield(self) if block_given? end |
.method_missing(symbol, *args) ⇒ Object
set or get the configuration parameters
21 22 23 24 25 26 27 |
# File 'lib/appmospheres_audit.rb', line 21 def method_missing(symbol, *args) if (method = symbol.to_s).sub!(/\=$/, '') [method.to_sym] = args.first else [method.to_sym] end end |
.options ⇒ Object
stores a hash of options given to the configure
block.
16 17 18 |
# File 'lib/appmospheres_audit.rb', line 16 def @options ||= {} end |