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
instantiator-0.0.7 lib/instantiator/core_ext/symbol.rb
introspection-0.0.4 lib/introspection/core_ext/symbol.rb
marcandre-backports-1.8.0 lib/backports/1.8.7/symbol.rb
marcandre-backports-1.8.1 lib/backports/1.8.7/symbol.rb
marcandre-backports-1.8.2 lib/backports/1.8.7/symbol.rb
marcandre-backports-1.8.3 lib/backports/1.8.7/symbol.rb
marcandre-backports-1.8.4 lib/backports/1.8.7/symbol.rb
marcandre-backports-1.9.0 lib/backports/1.8.7/symbol.rb
introspection-0.0.3 lib/introspection/core_ext/symbol.rb
backports-3.0.3 lib/backports/1.8.7/symbol.rb
backports-3.0.2 lib/backports/1.8.7/symbol.rb
backports-3.0.1 lib/backports/1.8.7/symbol.rb
backports-3.0.0 lib/backports/1.8.7/symbol.rb
backports-2.8.2 lib/backports/1.8.7/symbol.rb
backports-2.8.1 lib/backports/1.8.7/symbol.rb
backports-2.8.0 lib/backports/1.8.7/symbol.rb
backports-2.7.1 lib/backports/1.8.7/symbol.rb
backports-2.7.0 lib/backports/1.8.7/symbol.rb
backports-2.6.7 lib/backports/1.8.7/symbol.rb
backports-2.6.6 lib/backports/1.8.7/symbol.rb