Module: SublInit::Thor::Support
- Included in:
- Ruby
- Defined in:
- lib/sublinit/thor/support.rb
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.extended(base) ⇒ Object
6 7 8 9 10 |
# File 'lib/sublinit/thor/support.rb', line 6 def self.extended(base) base.define_singleton_method(:included) do |thor| thor.class_eval(&@_commands_block) end end |
Instance Method Details
#commands(&commands_definition) ⇒ Object
12 13 14 |
# File 'lib/sublinit/thor/support.rb', line 12 def commands(&commands_definition) @_commands_block = commands_definition end |