Class: WebPipe::DSL::ClassContext Private
- Inherits:
-
Module
- Object
- Module
- WebPipe::DSL::ClassContext
- 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
- #ast ⇒ Object readonly private
Instance Method Summary collapse
- #extended(klass) ⇒ Object private
-
#initialize ⇒ ClassContext
constructor
private
A new instance of ClassContext.
Constructor Details
#initialize ⇒ ClassContext
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
#ast ⇒ Object (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 |