Class: Gurke::Configuration::HookSet::Context Private

Inherits:
Object
  • Object
show all
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

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.



148
149
150
151
# File 'lib/gurke/configuration.rb', line 148

def initialize(context, block)
  @context = context
  @block = block
end

Instance Method Details

#callObject

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.



161
162
163
# File 'lib/gurke/configuration.rb', line 161

def call
  @block.call
end

#tagsObject

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.



153
154
155
# File 'lib/gurke/configuration.rb', line 153

def tags
  @context.tags.map(&:name)
end

#to_procObject

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.



157
158
159
# File 'lib/gurke/configuration.rb', line 157

def to_proc
  @block
end