Class: WebPipe::DSL::Builder Private

Inherits:
Module
  • Object
show all
Defined in:
lib/web_pipe/dsl/builder.rb

This class is part of a private API. You should avoid using this class if possible, as it may be removed or be changed in the future.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(container: Pipe::EMPTY_CONTAINER) ⇒ Builder

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

Returns a new instance of Builder.



13
14
15
16
17
18
19
20
# File 'lib/web_pipe/dsl/builder.rb', line 13

def initialize(container: Pipe::EMPTY_CONTAINER)
  @class_context = ClassContext.new
  @instance_context = InstanceContext.new(
    class_context: class_context,
    container: container
  )
  super()
end

Instance Attribute Details

#class_contextObject (readonly)

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.



11
12
13
# File 'lib/web_pipe/dsl/builder.rb', line 11

def class_context
  @class_context
end

#instance_contextObject (readonly)

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.



11
12
13
# File 'lib/web_pipe/dsl/builder.rb', line 11

def instance_context
  @instance_context
end

Instance Method Details

#included(klass) ⇒ Object

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.



22
23
24
25
# File 'lib/web_pipe/dsl/builder.rb', line 22

def included(klass)
  klass.extend(class_context)
  klass.include(instance_context)
end