RubyGems Navigation menu

proc_eval 2.0.0

Adds an `evaulate` refinement method to Proc and Object instances. The goal of this gem is to allow evaluation of variables, procs, and lambdas with the same level of flexibility. The `evaluate` method has been added to the Object class to simply return the value of the variable. The `evaluate` method is overriden 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:
= 复制到剪贴板 已复制!

安装:
=

版本列表:

  1. 2.0.0 - September 01, 2023 (5.0 KB)

业主:

推送:

作者:

  • Brent Jacobs, br3nt, reeganviljoen

SHA 256 校验和:

= 复制到剪贴板 已复制!

下载总量 393

这个版本 393

版本发布:

许可:

MIT

需要的 Ruby 版本: >= 2.7

链接: