class Awt::Task

Public Class Methods

new(&block) click to toggle source
# File lib/awt/task.rb, line 3
def initialize(&block)
  @block = block
end

Public Instance Methods

exec(targets) click to toggle source
# File lib/awt/task.rb, line 7
def exec(targets)
  targets.each do |target|
    target.instance_eval &@block
  end
end