Class: Comatose::Drop
- Inherits:
-
Liquid::Drop
- Object
- Liquid::Drop
- Comatose::Drop
- Defined in:
- lib/comatose/drop.rb
Class Method Summary collapse
-
.define(name, &block) ⇒ Object
Define a new Comatose::Drop by name.
Instance Method Summary collapse
Class Method Details
.define(name, &block) ⇒ Object
Define a new Comatose::Drop by name
16 17 18 19 20 21 22 |
# File 'lib/comatose/drop.rb', line 16 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 |