lib/comatose/drop.rb
# Define a new Comatose::Drop by name
Define a new Comatose::Drop by name
Define a new Comatose :: Drop by name
def define(name, &block)
        d = Comatose::Drop.new
        d.instance_eval(&block)
        Comatose.registered_drops[name] = d
      rescue
        Comatose.logger.debug "Drop '#{name}' was not included: #{$!}"
      end
def define ( name , & block ) d = Comatose :: Drop . new d . instance_eval ( & block ) Comatose . registered_drops [ name ] = d rescue Comatose . logger . debug "Drop '#{name}' was not included: #{$!}" end
Define a new Comatose::Drop by name
Define a new Comatose :: Drop by name
name
<not_specific>
block
<not_specific>