Class: Fix::It Private

Inherits:
Object
  • Object
show all
Defined in:
lib/fix/let.rb

Overview

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.

Open the it class.

API:

  • private

Dynamic Method Handling

This class handles dynamic methods through the method_missing method

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

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.

Override Ruby’s method_missing in order to provide ‘On#let` interface.

Raises:

  • If doesn’t respond to the given method.

Since:

  • 0.11.0

API:

  • private



45
46
47
# File 'lib/fix/let.rb', line 45

def method_missing(name, *args, &block)
  helpers.key?(name) ? helpers.fetch(name).call : super
end