Registry / utility / procto

procto

JSON →
library0.0.3rbrubygemsunverified

Procto turns your object into a method object, allowing it to be called as a proc.

gem install procto
INSTALL
IMPORT
SIG · PROCTO
P
procto
utilityrubyv0.0.3
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

Procto
require 'procto'

Convert an object into a callable method object

require 'procto' class Greeter include Procto.call def initialize(name) @name = name end def call "Hello, #{@name}!" end end greet = Greeter.new('World') puts greet.call # => "Hello, World!"
Debug
Known issues

No known issues recorded.

Upgrade
Version history
0.0.3latest on RubyGems
Audit
Dependencies

No dependency data recorded yet.

Agent activity
7 hits · last 30 days
node
6
Amazon
1
Resources
procto — gem install procto · libregistry