Class: Cucumber::Wire::Protocol::Requests::HookRequestHandler

Inherits:
RequestHandler
  • Object
show all
Defined in:
lib/cucumber/wire/protocol/requests.rb

Instance Method Summary collapse

Methods inherited from RequestHandler

#handle_fail, #handle_success, #initialize

Constructor Details

This class inherits a constructor from Cucumber::Wire::RequestHandler

Dynamic Method Handling

This class handles dynamic methods through the method_missing method

#method_missing(name, *args, &block) ⇒ Object

Raises:

  • (NoMethodError)


109
110
111
112
# File 'lib/cucumber/wire/protocol/requests.rb', line 109

def method_missing(name, *args, &block)
  # TODO: Hard-code this until Ruby 3.4 is a minimum then this can be removed
  raise NoMethodError, "Undefined method '#{name}' for #{self.class}"
end

Instance Method Details

#execute(test_case) ⇒ Object



105
106
107
# File 'lib/cucumber/wire/protocol/requests.rb', line 105

def execute(test_case)
  super(request_params(test_case))
end

#respond_to_missing?(name, include_private = false) ⇒ Boolean

Returns:

  • (Boolean)


114
115
116
117
# File 'lib/cucumber/wire/protocol/requests.rb', line 114

def respond_to_missing?(name, include_private = false)
  # TODO: Remove this once ruby 3.4 is the minimum
  super
end