module Schatter::Command
Public Instance Methods
classify(s)
click to toggle source
# File lib/schatter/commands.rb, line 7 def classify s s.to_s.split('_').map(&:capitalize).join end
load_command(name, *args)
click to toggle source
# File lib/schatter/commands.rb, line 2 def load_command name, *args require "schatter/command/#{name}" Schatter::Command.const_get(classify name.to_s).new(*args) end