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.

ignore_missing_messages.rb 489 B

2 years ago
12345678910111213141516171819
  1. # frozen_string_literal: true
  2. module Cucumber
  3. module Formatter
  4. class IgnoreMissingMessages < BasicObject
  5. def initialize(receiver)
  6. @receiver = receiver
  7. end
  8. def method_missing(message, *args)
  9. @receiver.respond_to?(message) ? @receiver.send(message, *args) : super
  10. end
  11. def respond_to_missing?(name, include_private = false)
  12. @receiver.respond_to?(name, include_private) || super(name, include_private)
  13. end
  14. end
  15. end
  16. end

No Description

Contributors (1)