Sha256: b3f6d971129a8e54393ce344147069b02603cb75704721ae784abfc146e1c4d3

Contents?: true

Size: 403 Bytes

Versions: 7

Compression:

Stored size: 403 Bytes

Contents

module Bixby
  module App
    class Command

      def self.command_name(str=nil)
        @command_name = str if !str.nil?
        @command_name ||= self.name.split(/::/).last.downcase
      end

      def self.desc(str=nil)
        @desc = str if !str.nil?
        @desc
      end

      def self.match(str)
        command_name == str
      end

      def self.options
      end

    end
  end
end


Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
bixby-client-0.5.3 lib/bixby-client/app/command.rb
bixby-client-0.5.2 lib/bixby-client/app/command.rb
bixby-client-0.5.1 lib/bixby-client/app/command.rb
bixby-client-0.5.0 lib/bixby-client/app/command.rb
bixby-client-0.4.1 lib/bixby-client/app/command.rb
bixby-client-0.4.0 lib/bixby-client/app/command.rb
bixby-client-0.3.0 lib/bixby-client/app/command.rb