Class: Orientea::Command
- Inherits:
-
ActiveRecord::Base
- Object
- ActiveRecord::Base
- Orientea::Command
- Defined in:
- lib/orientea/command.rb
Direct Known Subclasses
Class Method Summary collapse
Class Method Details
.action(&block) ⇒ Object
5 6 7 |
# File 'lib/orientea/command.rb', line 5 def self.action(&block) define_method(:action, &block) end |
.undo(&block) ⇒ Object
9 10 11 |
# File 'lib/orientea/command.rb', line 9 def self.undo(&block) define_method(:undo, &block) end |