lib/naplug.rb
# Create a metaplugin (which basically contains a tag and a block)
# @param tag [Symbol] the plugin tag
# @return [Plugin] a metaplugin
Create a metaplugin (which basically contains a tag and a block)
Create a metaplugin ( which basically contains a tag and a block )
def plugin(*tagmeta, &block)
      tag, meta = tagmeta_grok tagmeta
      @metas = Hash.new unless @metas
      @metas[tag] = Meta.new meta.merge :meta => true
      @plugins = Hash.new unless @plugins
      @plugins[tag] = create_metaplugin tag, meta, block
      @_time = { :start => Time.now } 
    end
def plugin ( * tagmeta , & block ) tag , meta = tagmeta_grok tagmeta @metas = Hash . new unless @metas @metas [ tag ] = Meta . new meta . merge :meta => true @plugins = Hash . new unless @plugins @plugins [ tag ] = create_metaplugin tag , meta , block @_time = { :start => Time . now } end
Create a metaplugin (which basically contains a tag and a block)
Create a metaplugin ( which basically contains a tag and a block )
#  if m[:benchmark]
None
Plugin
tagmeta
block
tag
the plugin tag
the plugin tag