Class: Symbol

Inherits:
Object
  • Object
show all
Defined in:
lib/hostmon/rubyfixes.rb

Overview

metaprogramming ruby trick; builtin in 1.9

Instance Method Summary collapse

Instance Method Details

#to_procObject



7
8
9
# File 'lib/hostmon/rubyfixes.rb', line 7

def to_proc
  Proc.new { |x| x.send(self) }
end