Class: Gurke::Configuration::HookSet::Context Private
- Inherits:
-
Object
- Object
- Gurke::Configuration::HookSet::Context
- Extended by:
- Forwardable
- Defined in:
- lib/gurke/configuration.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 Method Summary collapse
- #call ⇒ Object private
-
#initialize(context, block) ⇒ Context
constructor
private
A new instance of Context.
- #tags ⇒ Object private
- #to_proc ⇒ Object private
Constructor Details
#initialize(context, block) ⇒ Context
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 Context.
164 165 166 167 |
# File 'lib/gurke/configuration.rb', line 164 def initialize(context, block) @context = context @block = block end |
Instance Method Details
#call ⇒ 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.
177 178 179 |
# File 'lib/gurke/configuration.rb', line 177 def call @block.call end |
#tags ⇒ 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.
169 170 171 |
# File 'lib/gurke/configuration.rb', line 169 def @context..map(&:name) end |
#to_proc ⇒ 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.
173 174 175 |
# File 'lib/gurke/configuration.rb', line 173 def to_proc @block end |