Sha256: 011419890ccf59e2fdba32b5f2dce19fe5afd59831a990a2d86286f0f04f2158
Contents?: true
Size: 237 Bytes
Versions: 2
Compression:
Stored size: 237 Bytes
Contents
module Koalemos module ToProc def to_proc lambda do |obj, *args| obj.__send__(self, *args[0..-1]) end end end class ::Symbol unless method_defined?(:to_proc) include ToProc end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
koalemos-0.0.2 | lib/koalemos/symbol_to_proc.rb |
koalemos-0.0.1 | lib/koalemos/symbol_to_proc.rb |