Sha256: 59b026592c5c06b4163318e7ba6cad53bce0122145ba342463f4ff31ded2f032
Contents?: true
Size: 630 Bytes
Versions: 19
Compression:
Stored size: 630 Bytes
Contents
module TaskwarriorWeb::CommandBuilder autoload :Base, 'taskwarrior-web/services/builder/base' autoload :V1, 'taskwarrior-web/services/builder/v1' autoload :V2, 'taskwarrior-web/services/builder/v2' class InvalidCommandError < Exception; end class MissingTaskIDError < Exception; end def self.included(class_name) class_name.class_eval do case TaskwarriorWeb::Config.version.major when 2 include TaskwarriorWeb::CommandBuilder::V2 when 1 include TaskwarriorWeb::CommandBuilder::V1 else raise TaskwarriorWeb::UnrecognizedTaskVersion end end end end
Version data entries
19 entries across 19 versions & 1 rubygems