RubyGems Navigation menu

proc_evaluate 1.1.1

Adds an `evaluate` refinement method to Proc and Object instances. The goal of this gem is to allow the evaluation of variables, procs, and lambdas with the same level of flexibility. The `evaluate` method has been added to the Object class to return the evaluated value of the variable. The `evaluate` method is overridden on the Proc class to allow parameters to be passed to lambdas in the same flexible way as procs. This takes into consideration, required/optional/remaining parameters, and required/optional/remaining keyword parameters. For information on Refinements, see: - https://ruby-doc.org/core-2.0.0/doc/syntax/refinements_rdoc.html - https://ruby-doc.org/core-2.1.0/doc/syntax/refinements_rdoc.html - https://ruby-doc.org/core-2.2.0/doc/syntax/refinements_rdoc.html - https://ruby-doc.org/core-2.3.0/doc/syntax/refinements_rdoc.html - https://ruby-doc.org/core-2.4.0/doc/syntax/refinements_rdoc.html - http://yehudakatz.com/2010/11/30/ruby-2-0-refinements-in-practice/

Gemfile:
= Copy to clipboard Copied!

install:
=

Versions:

  1. 1.1.1 - November 02, 2023 (5 KB)
  2. 1.1.0 - September 05, 2023 (5 KB)
  3. 1.0.0 - October 06, 2017 (5 KB)

Development Dependencies (2):

minitest >= 5
rake >= 13

Owners:

Pushed by:

Authors:

  • Brent Jacobs, br3nt

SHA 256 checksum:

44761ddcb99abaf374950a704318830b60de2ddbb1faf89d5e3c6b251ffc8f5c

Total downloads 86,400

For this version 1,826

License:

MIT

Required Ruby Version: >= 2.0

Links: