Class: Bixby::App::Command
Class Method Summary
collapse
Class Method Details
.command_name(str = nil) ⇒ Object
6
7
8
9
|
# File 'lib/bixby-client/app/command.rb', line 6
def self.command_name(str=nil)
@command_name = str if !str.nil?
@command_name ||= self.name.split(/::/).last.downcase
end
|
.desc(str = nil) ⇒ Object
11
12
13
14
|
# File 'lib/bixby-client/app/command.rb', line 11
def self.desc(str=nil)
@desc = str if !str.nil?
@desc
end
|
.match(str) ⇒ Object
16
17
18
|
# File 'lib/bixby-client/app/command.rb', line 16
def self.match(str)
command_name == str
end
|
20
21
|
# File 'lib/bixby-client/app/command.rb', line 20
def self.options
end
|