blob: 068c8bb66b14b83ca4cb70792f4949f6c6ce06fe (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
|
# frozen_string_literal: true
module CommandTag::Commands
def self.included(base)
Dir[File.join(__dir__, 'commands', '*.rb')].sort.each do |file|
require file
base.include(CommandTag::Commands.const_get(File.basename(file).gsub('.rb', '').split('_').map(&:capitalize).join))
end
end
end
|