Sha256: 80a2bdd2771d0def4d646fd6bae008d781820142990f1b2516debb3fbe5d7c7e
Contents?: true
Size: 347 Bytes
Versions: 5
Compression:
Stored size: 347 Bytes
Contents
require "active_support/core_ext/string/inflections" module Saber module Task class Base < Thor class << self def inherited(child) Task.tasks[child.name.demodulize.underscore] = child end # invoke a task def invoke(*args) new.invoke(*args) end end end end end
Version data entries
5 entries across 5 versions & 1 rubygems
Version | Path |
---|---|
saber-1.1.1 | lib/saber/task/base.rb |
saber-1.1.0 | lib/saber/task/base.rb |
saber-1.0.2 | lib/saber/task/base.rb |
saber-1.0.1 | lib/saber/task/base.rb |
saber-1.0.0 | lib/saber/task/base.rb |