Module: Bowline::Watcher::Base::InstanceMethods

Defined in:
lib/bowline/watcher.rb

Overview

:nodoc:

Instance Method Summary collapse

Instance Method Details

#watch(*names) ⇒ Object



54
55
56
57
58
59
60
61
62
63
# File 'lib/bowline/watcher.rb', line 54

def watch(*names)
	names.each do |name|
    script = <<-RUBY
      def #{name}(*args, &block)
        watcher.append(:#{name}, *args, &block)
      end
    RUBY
    class_eval script
    			end
end