Module: Absinthe::Dsl

Included in:
Absinthe
Defined in:
lib/absinthe/dsl.rb

Instance Method Summary collapse

Instance Method Details

#boot!(boot_file, calling_context = nil, &block) ⇒ Object



3
4
5
6
7
8
9
10
# File 'lib/absinthe/dsl.rb', line 3

def boot! boot_file, calling_context = nil, &block
  Distillery.root_context.configure do
    const :app_root, File.expand_path(File.dirname(boot_file))
    const :calling_context, calling_context
    const :boot_proc, block
    boot!
  end
end