module Headdesk::CliCommand

Helper for CLI command modules

Public Class Methods

each(&block) click to toggle source
# File lib/headdesk.rb, line 32
def self.each(&block)
  @commands.each(&block)
end
included(cmd) click to toggle source
# File lib/headdesk.rb, line 36
def self.included(cmd)
  @commands ||= []
  @commands << cmd
end