lib/naplug.rb
def create_metaplugin(tag,meta,block)
      module_eval do
        define_method "#{tag}".to_sym  do; @plugins[tag];  end    # <tag> methods for quick access to plugins
        define_method "#{tag}!".to_sym do; self.exec! tag; end    # <tag>! methods to involke exec! on a given plugin
      end
      Plugin.new tag, block, meta.merge(:parent => self, :meta => true)
    end
# Create a metaplugin (helper)
Create a metaplugin (helper)
Create a metaplugin ( helper )
def create_metaplugin(tag,meta,block)
      module_eval do
        define_method "#{tag}".to_sym  do; @plugins[tag];  end    
        define_method "#{tag}!".to_sym do; self.exec! tag; end    
      end
      Plugin.new tag, block, meta.merge(:parent => self, :meta => true)
    end
def create_metaplugin ( tag , meta , block ) module_eval do define_method "#{tag}" . to_sym do ; @plugins [ tag ] ; end define_method "#{tag}!" . to_sym do ; self . exec! tag ; end end Plugin . new tag , block , meta . merge ( :parent => self , :meta => true ) end
Create a metaplugin (helper)
Create a metaplugin ( helper )
# <tag> methods for quick access to plugins # <tag>! methods to involke exec! on a given plugin
tag
meta
block