Sha256: fae053c51f3f8e07f5d8c9e9770346e06083d3e14c3fb2b460df1ea6da579a68

Contents?: true

Size: 239 Bytes

Versions: 79

Compression:

Stored size: 239 Bytes

Contents

class Symbol
  # Standard in ruby 1.8.7+. See official documentation[http://ruby-doc.org/core-1.9/classes/Symbol.html]
  def to_proc
    Proc.new { |*args| args.shift.__send__(self, *args) }
  end unless :to_proc.respond_to?(:to_proc)
end

Version data entries

79 entries across 79 versions & 5 rubygems

Version Path
backports-2.0.2 lib/backports/1.8.7/symbol.rb
backports-2.0.1 lib/backports/1.8.7/symbol.rb
backports-2.0.0 lib/backports/1.8.7/symbol.rb
backports-1.18.2 lib/backports/1.8.7/symbol.rb
backports-1.18.1 lib/backports/1.8.7/symbol.rb
backports-1.18.0 lib/backports/1.8.7/symbol.rb
backports-1.17.1 lib/backports/1.8.7/symbol.rb
backports-1.17.0 lib/backports/1.8.7/symbol.rb
backports-1.16.7 lib/backports/1.8.7/symbol.rb
backports-1.16.6 lib/backports/1.8.7/symbol.rb
backports-1.16.5 lib/backports/1.8.7/symbol.rb
backports-1.16.4 lib/backports/1.8.7/symbol.rb
backports-1.16.3 lib/backports/1.8.7/symbol.rb
backports-1.16.2 lib/backports/1.8.7/symbol.rb
backports-1.16.1 lib/backports/1.8.7/symbol.rb
backports-1.15.0 lib/backports/1.8.7/symbol.rb
backports-1.14.1 lib/backports/1.8.7/symbol.rb
backports-1.14.0 lib/backports/1.8.7/symbol.rb
backports-1.13.3 lib/backports/1.8.7/symbol.rb
backports-1.13.2 lib/backports/1.8.7/symbol.rb