class Pork::Env

Public Class Methods

new(se=nil) click to toggle source
Calls superclass method
# File lib/pork/env.rb, line 4
def initialize se=nil
  super(se, [], [])
end

Public Instance Methods

run_after(context) click to toggle source
# File lib/pork/env.rb, line 13
def run_after context
  after.reverse_each{ |b| context.instance_eval(&b) }
  super_env && super_env.run_after(context)
end
run_before(context) click to toggle source
# File lib/pork/env.rb, line 8
def run_before context
  super_env && super_env.run_before(context)
  before.each{ |b| context.instance_eval(&b) }
end