Module: Fix::OnHelper Private
- Defined in:
- lib/fix/helpers/on_helper.rb
Overview
This module is part of a private API. You should avoid using this module if possible, as it may be removed or be changed in the future.
On’s helper.
Instance Method Summary collapse
-
#on(method_name, *args, &block) ⇒ Array
Add on method to the DSL.
Instance Method Details
#on(method_name, *args, &block) ⇒ Array
Add on method to the DSL.
21 22 23 24 25 26 27 28 |
# File 'lib/fix/helpers/on_helper.rb', line 21 def on(method_name, *args, &block) o = On.new(@front_object, results, (@challenges + [Spectus::Challenge.new(method_name, *args)]), @configuration) o.instance_eval(&block) end |