Class: Cucumber::Formatter::IgnoreMissingMessages

Inherits:
BasicObject
Defined in:
lib/cucumber/formatter/ignore_missing_messages.rb

Instance Method Summary collapse

Constructor Details

#initialize(receiver) ⇒ IgnoreMissingMessages

Returns a new instance of IgnoreMissingMessages



6
7
8
# File 'lib/cucumber/formatter/ignore_missing_messages.rb', line 6

def initialize(receiver)
  @receiver = receiver
end

Dynamic Method Handling

This class handles dynamic methods through the method_missing method

#method_missing(message, *args) ⇒ Object



10
11
12
# File 'lib/cucumber/formatter/ignore_missing_messages.rb', line 10

def method_missing(message, *args)
  @receiver.send(message, *args) if @receiver.respond_to?(message)
end

Instance Method Details

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

Returns:

  • (Boolean)


14
15
16
# File 'lib/cucumber/formatter/ignore_missing_messages.rb', line 14

def respond_to_missing?(name, include_private = false)
  @receiver.respond_to?(name, include_private)
end