module Pico
Constants
- Error
- Exception
- VERSION
Attributes
application[RW]
Public Instance Methods
boot!()
click to toggle source
# File lib/pico.rb, line 29 def boot! contexts.each_value(&:boot!) end
define_application(name, **params, &block)
click to toggle source
# File lib/pico.rb, line 21 def define_application(name, **params, &block) contexts[name] = @application = Application.new(name, **params, &block) end
define_context(name, **params)
click to toggle source
# File lib/pico.rb, line 25 def define_context(name, **params) contexts[name] = Context.new(name, **params) end
shutdown!()
click to toggle source
# File lib/pico.rb, line 33 def shutdown! contexts.each_value do |context| context.shutdown! if context.booted? end contexts.clear end