Method: Artoo::Events#proxy_method_name
- Defined in:
- lib/artoo/events.rb
#proxy_method_name(base_name) ⇒ Method
A simple loop to create a 'fake' anonymous method
34 35 36 37 38 39 |
# File 'lib/artoo/events.rb', line 34 def proxy_method_name(base_name) begin meth = "#{base_name}_#{Random.rand(999)}" end while respond_to?(meth) meth end |