Class: Lab42::Curry::ComputedArg

Inherits:
Object
  • Object
show all
Defined in:
lib/lab42/curry/computed_arg.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#positionObject (readonly)

Returns the value of attribute position.



5
6
7
# File 'lib/lab42/curry/computed_arg.rb', line 5

def position
  @position
end

Instance Method Details

#call(*args, **kwds) ⇒ Object



7
8
9
# File 'lib/lab42/curry/computed_arg.rb', line 7

def call(*args, **kwds)
  @blk.call(*args, **kwds)
end