class EacRubyUtils::Context

def current

def current
  optional_current || raise('No elements in context')
end

def on(obj)

def on(obj)
  push(obj)
  begin
    yield
  ensure
    pop
  end
end

def optional_current

def optional_current
  stack.last
end

def stack

def stack
  @stack ||= []
end