class Lab42::Curry::ComputedArg
Attributes
position[R]
Public Class Methods
new(position, blk)
click to toggle source
# File lib/lab42/curry/computed_arg.rb, line 12 def initialize(position, blk) @blk = blk @position = position end
Public Instance Methods
call(*args, **kwds)
click to toggle source
# File lib/lab42/curry/computed_arg.rb, line 7 def call(*args, **kwds) @blk.call(*args, **kwds) end