Class: WebPipe::DSL::ClassContext Private

Inherits:
Module
  • Object
show all
Defined in:
lib/web_pipe/dsl/class_context.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.

Constant Summary collapse

DSL_METHODS =

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

%i[use plug compose].freeze

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeClassContext

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 ClassContext.



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

def initialize
  @ast = []
  super
end

Instance Attribute Details

#astObject (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.



9
10
11
# File 'lib/web_pipe/dsl/class_context.rb', line 9

def ast
  @ast
end

Instance Method Details

#extended(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.



16
17
18
# File 'lib/web_pipe/dsl/class_context.rb', line 16

def extended(klass)
  define_dsl_methods(klass, ast)
end