module Apply
Constants
- VERSION
Public Instance Methods
if(&test)
click to toggle source
# File lib/apply.rb, line 4 def if(&test) ->(value) { test[value] ? call(value) : value } end
unless(&test)
click to toggle source
# File lib/apply.rb, line 8 def unless(&test) ->(value) { test[value] ? value : call(value) } end