Sha256: 657dfbc10ae29ed890d03f59e79bc5e719f15bc7a544e89c2a75e1dbac5ab2db

Contents?: true

Size: 225 Bytes

Versions: 3

Compression:

Stored size: 225 Bytes

Contents

require 'ludy/version'

if Ludy::ruby_before '1.9.0'
  class Symbol
    # it would be defined if RUBY_VERSION < '1.9.0', see rdoc in ruby 1.9
    def to_proc; lambda{ |*args| args.shift.__send__ self, *args }; end
  end
end

Version data entries

3 entries across 3 versions & 2 rubygems

Version Path
godfat-ludy-0.1.13 lib/ludy/symbol/to_proc.rb
ludy-0.1.11 lib/ludy/symbol/to_proc.rb
ludy-0.1.13 lib/ludy/symbol/to_proc.rb