Class: Symbol
- Inherits:
-
Object
- Object
- Symbol
- Defined in:
- lib/hostmon/rubyfixes.rb
Overview
metaprogramming ruby trick; builtin in 1.9
Instance Method Summary collapse
Instance Method Details
#to_proc ⇒ Object
7 8 9 |
# File 'lib/hostmon/rubyfixes.rb', line 7 def to_proc Proc.new { |x| x.send(self) } end |