Class: Absinthe::Distillery::Warehouse
- Inherits:
-
Object
- Object
- Absinthe::Distillery::Warehouse
- Defined in:
- lib/absinthe/distillery.rb
Instance Attribute Summary collapse
-
#root_context ⇒ Object
readonly
Returns the value of attribute root_context.
Instance Method Summary collapse
-
#initialize(main_object) ⇒ Warehouse
constructor
A new instance of Warehouse.
Constructor Details
#initialize(main_object) ⇒ Warehouse
Returns a new instance of Warehouse.
12 13 14 15 16 17 |
# File 'lib/absinthe/distillery.rb', line 12 def initialize main_object raise "Warehouse init failure!" if main_object.nil? @root_context = Context.new root_context.register :namespace, RootNamespace.new(main_object) root_context.register :source_loader, SourceLoader end |
Instance Attribute Details
#root_context ⇒ Object (readonly)
Returns the value of attribute root_context.
11 12 13 |
# File 'lib/absinthe/distillery.rb', line 11 def root_context @root_context end |