Sha256: b818a5d027f82747285faf6ce9474df70226e65116b41724dccd9757668f1120

Contents?: true

Size: 198 Bytes

Versions: 9

Compression:

Stored size: 198 Bytes

Contents

if RUBY_VERSION < '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

9 entries across 9 versions & 1 rubygems

Version Path
ludy-0.1.10 lib/ludy/symbol/to_proc.rb
ludy-0.1.2 lib/ludy/symbol/to_proc.rb
ludy-0.1.3 lib/ludy/symbol/to_proc.rb
ludy-0.1.4 lib/ludy/symbol/to_proc.rb
ludy-0.1.5 lib/ludy/symbol/to_proc.rb
ludy-0.1.6 lib/ludy/symbol/to_proc.rb
ludy-0.1.7 lib/ludy/symbol/to_proc.rb
ludy-0.1.8 lib/ludy/symbol/to_proc.rb
ludy-0.1.9 lib/ludy/symbol/to_proc.rb