class Fix::On
Open the on class.
@api private
Public Instance Methods
let(method_name, &block)
click to toggle source
@api public
@example Let's define the answer to the Ultimate Question of Life, the
Universe, and Everything. let(:answer) { 42 }
@param method_name [Symbol] The identifier of a method. @param block [Proc] A spec to compare against the computed value.
@return [#object_id] List of results.
# File lib/fix/let.rb, line 26 def let(method_name, &block) helpers.update(method_name => block) end