Class: Soca::Plugins::Macro

Inherits:
Soca::Plugin show all
Defined in:
lib/soca/plugins/macro.rb

Instance Attribute Summary

Attributes inherited from Soca::Plugin

#options, #pusher

Instance Method Summary collapse

Methods inherited from Soca::Plugin

#app_dir, #config, #initialize, #logger, name, plugins

Constructor Details

This class inherits a constructor from Soca::Plugin

Instance Method Details

#before_pushObject



10
11
12
13
14
# File 'lib/soca/plugins/macro.rb', line 10

def before_push
  @pusher.document['views'].each do |view,code|
    ['map','reduce'].each{|part| macro_expand_on(part,code) if code[part]}
  end
end