Class: Soca::Plugins::Macro
- Inherits:
-
Soca::Plugin
- Object
- Soca::Plugin
- Soca::Plugins::Macro
- Defined in:
- lib/soca/plugins/macro.rb
Instance Attribute Summary
Attributes inherited from Soca::Plugin
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_push ⇒ Object
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| (part,code) if code[part]} end end |