This repository was archived by the owner on Jun 19, 2025. It is now read-only.
forked from br3nt/proc_evaluate
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathproc_evaluate.gemspec
More file actions
34 lines (28 loc) · 1.54 KB
/
proc_evaluate.gemspec
File metadata and controls
34 lines (28 loc) · 1.54 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
require_relative 'lib/proc_evaluate/version.rb'
Gem::Specification.new do |spec|
spec.name = 'proc_evaluate'
spec.version = ProcEvaluate::VERSION
spec.authors = ['Brent Jacobs', 'br3nt']
spec.homepage = 'https://github.com/br3nt/proc_evaluate'
spec.required_ruby_version = '>= 2.0'
spec.summary = 'Allow evaluation of variables, procs, and lambdas with the same level of flexibility.'
spec.description = <<-DESC
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/
DESC
spec.licenses = ['MIT']
spec.files = [
'lib/proc_evaluate.rb',
'lib/proc_evaluate/version.rb'
]
end