Module: Cinnabar::FnPipe::Refin

Defined in:
lib/cinnabar/pipe.rb

Overview

Function Pipe

Refinement: Object#▷

Examples:


using Cinnabar::FnPipe::Refin

put_obj = ->s { puts s }
'Foo'.(put_obj)
    #=> put_obj.call('Foo') => puts 'Foo' => Foo

2. put_obj
    #=> put_obj.call(2) => puts 2 => 2

'Bar'. :puts
    #=> method(:puts).call('Bar') => puts 'Bar' => Bar