lib/bj/mixin/async.rb
# Performs a class method if id is nil or
# an instance method if id has a value.
Performs a class method if id is nil or
an instance method if id has a value.
Performs a class method if id is nil or an instance method if id has a value .
def perform(id, method)
          args = YAML.load(STDIN)
          obj = id ? find(id) : self
          obj.send(method, *args)
        end
def perform ( id , method ) args = YAML . load ( STDIN ) obj = id ? find ( id ) : self obj . send ( method , * args ) end
Performs a class method if id is nil or
an instance method if id has a value.
Performs a class method if id is nil or an instance method if id has a value .
id
<not_specific>
method
<not_specific>