Method: Codebase::Command#initialize
- Defined in:
- lib/codebase/command.rb
#initialize(block) ⇒ Command
Returns a new instance of Command.
4 5 6 |
# File 'lib/codebase/command.rb', line 4 def initialize(block) (class << self;self end).send :define_method, :command, &block end |