Method: CdnFu::Config#preprocessor
- Defined in:
- lib/cdn_fu/config.rb
#preprocessor(*args, &block) ⇒ Object
101 102 103 104 105 106 107 |
# File 'lib/cdn_fu/config.rb', line 101 def preprocessor(*args, &block) return @preprocessor if args.size == 0 preprocessor_class = args[0] @preprocessor = preprocessor_class.new puts "Setting up preprocessor_class #{@preprocessor}" @preprocessor.instance_eval &block if block_given? end |