Sha256: 57fe4926c9de2a3817484273c96fcaa3e99c20584bcbd4fd0002ca11c339ffb5
Contents?: true
Size: 265 Bytes
Versions: 19
Compression:
Stored size: 265 Bytes
Contents
# # h2. extensions/symbol.rb -- extensions to symbol class # class Symbol # # Turn the symbol into a simple proc (stolen from # <tt>ActiveSupport::CoreExtensions::Symbol</tt>). def to_proc Proc.new { |*args| args.shift.__send__(self, *args) } end end
Version data entries
19 entries across 19 versions & 2 rubygems