File: symbol.rb

package info (click to toggle)
mruby 2.0.0-1
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 3,576 kB
  • sloc: ansic: 37,355; ruby: 18,305; yacc: 6,107; sh: 20; makefile: 12
file content (7 lines) | stat: -rw-r--r-- 113 bytes parent folder | download | duplicates (8)
1
2
3
4
5
6
7
class Symbol
  def to_proc
    ->(obj,*args,&block) do
      obj.__send__(self, *args, &block)
    end
  end
end