module Circumstance::Helpers

Public Instance Methods

load_circumstance(name) click to toggle source

Evaluate a circumstance in the current context

# File lib/circumstance/helpers.rb, line 11
def load_circumstance(name)
  unless loaded_circumstances.include?(name)
    Circumstance.evaluate(self, name)
    loaded_circumstances.add(name)
  end
end
loaded_circumstances() click to toggle source

Returns a set of loaded circumstances for the current context

# File lib/circumstance/helpers.rb, line 6
def loaded_circumstances
  @loaded_circumstances ||= Set.new
end