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