You can not select more than 25 topics Topics must start with a chinese character,a letter or number, can include dashes ('-') and can be up to 35 characters long.

for_programming_languages.rb 925 B

2 years ago
1234567891011121314151617181920212223242526272829303132333435
  1. # frozen_string_literal: true
  2. require 'forwardable'
  3. require 'cucumber/core/test/doc_string'
  4. module Cucumber
  5. class Runtime
  6. # This is what a programming language will consider to be a runtime.
  7. #
  8. # It's a thin class that directs the handul of methods needed by the
  9. # programming languages to the right place.
  10. class ForProgrammingLanguages
  11. extend Forwardable
  12. attr_reader :support_code
  13. def initialize(support_code, user_interface)
  14. @support_code = support_code
  15. @user_interface = user_interface
  16. end
  17. def_delegators :@user_interface,
  18. :embed,
  19. :attach,
  20. :ask,
  21. :puts,
  22. :features_paths,
  23. :step_match
  24. def_delegators :@support_code,
  25. :invoke_dynamic_steps,
  26. :invoke_dynamic_step
  27. end
  28. end
  29. end

No Description

Contributors (1)