Sha256: 3659ff55c36601af4f7fc6942160a3865cfc76461941b1b670032eb19ef44654
Contents?: true
Size: 324 Bytes
Versions: 18
Compression:
Stored size: 324 Bytes
Contents
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 # Returns the symbol itself (for compatibility with # <tt>String.uniqnae</tt> and so on. def handle self end end
Version data entries
18 entries across 18 versions & 1 rubygems