Sha256: 609fe69a08ff29d41d562b2b80d81bf8fa0b0a59c6e27d54515b076a52f7d510

Contents?: true

Size: 164 Bytes

Versions: 21

Compression:

Stored size: 164 Bytes

Contents

module Tins
  module ToProc
    def to_proc
      lambda do |obj, *args|
        obj.__send__(self, *args[0..-1])
      end
    end
  end
end

require 'tins/alias'

Version data entries

21 entries across 21 versions & 1 rubygems

Version Path
tins-0.5.1 lib/tins/to_proc.rb
tins-0.5.0 lib/tins/to_proc.rb
tins-0.4.3 lib/tins/to_proc.rb
tins-0.4.2 lib/tins/to_proc.rb
tins-0.4.1 lib/tins/to_proc.rb
tins-0.4.0 lib/tins/to_proc.rb
tins-0.3.14 lib/tins/to_proc.rb
tins-0.3.13 lib/tins/to_proc.rb
tins-0.3.12 lib/tins/to_proc.rb
tins-0.3.11 lib/tins/to_proc.rb
tins-0.3.10 lib/tins/to_proc.rb
tins-0.3.9 lib/tins/to_proc.rb
tins-0.3.8 lib/tins/to_proc.rb
tins-0.3.7 lib/tins/to_proc.rb
tins-0.3.6 lib/tins/to_proc.rb
tins-0.3.5 lib/tins/to_proc.rb
tins-0.3.4 lib/tins/to_proc.rb
tins-0.3.3 lib/tins/to_proc.rb
tins-0.3.2 lib/tins/to_proc.rb
tins-0.3.1 lib/tins/to_proc.rb