Method: EagleClaw::Scraper.after

Defined in:
lib/eagleclaw.rb

.after(: each, : method_name) ⇒ nil .after(: all, : method_name) ⇒ nil .after(: each, &block) ⇒ nil .after(: all, &block) ⇒ nil

Define a post-processor to run in a certain context.

Overloads:

  • .after(: each, : method_name) ⇒ nil

    Run the given method after each component of the run.

  • .after(: all, : method_name) ⇒ nil

    Run the given method after the run itself.

  • .after(: each, &block) ⇒ nil

    Run the given block (using ‘instance_eval`) after each component of the run.

  • .after(: all, &block) ⇒ nil

    Run the given block (using ‘instance_eval`) after the entire run.

Parameters:

  • context (Symbol)

    either ‘:each` or `:all`.

  • meth (optional, Symbol) (defaults to: nil)

    name of method to call.

Returns:

  • (nil)

See Also:



65
66
67
# File 'lib/eagleclaw.rb', line 65

def after(context, meth = nil, &block)
  register([:after, context], meth, &block)
end