Sha256: 71b05b427001e7eb8ab576d3a4d7393286124b0e9c08df68832b162e6e7b7b2b

Contents?: true

Size: 119 Bytes

Versions: 6

Compression:

Stored size: 119 Bytes

Contents

unless (:a.respond_to?(:to_proc))
 class Symbol
   def to_proc
      proc {|stuff| stuff.send(self)}
   end
 end
end
 

Version data entries

6 entries across 6 versions & 2 rubygems

Version Path
ruby-prof-danielhoey-0.8.1 lib/ruby-prof/symbol_to_proc.rb
ruby-prof-0.8.2 lib/ruby-prof/symbol_to_proc.rb
ruby-prof-0.8.1-x86-mingw32 lib/ruby-prof/symbol_to_proc.rb
ruby-prof-0.8.1-x86-mswin32 lib/ruby-prof/symbol_to_proc.rb
ruby-prof-0.8.1 lib/ruby-prof/symbol_to_proc.rb
ruby-prof-0.7.10 lib/ruby-prof/symbol_to_proc.rb