Class: RubyAPI::Plugin
- Inherits:
-
Object
show all
- Defined in:
- lib/rubyapi/plugin.rb
Class Method Summary
collapse
Class Method Details
.inherited(subclass) ⇒ Object
.on_load(app) ⇒ Object
7
|
# File 'lib/rubyapi/plugin.rb', line 7
def self.on_load(app); end
|
.option(key, value = nil) ⇒ Object
18
19
20
21
|
# File 'lib/rubyapi/plugin.rb', line 18
def self.option(key, value = nil)
@options ||= {}
@options[key] = value
end
|
.options ⇒ Object
14
15
16
|
# File 'lib/rubyapi/plugin.rb', line 14
def self.options
@options ||= {}
end
|
.plugin_name ⇒ Object
10
11
12
|
# File 'lib/rubyapi/plugin.rb', line 10
def self.plugin_name
name.split("::").last
end
|
.register_cli(commands) ⇒ Object
9
|
# File 'lib/rubyapi/plugin.rb', line 9
def self.register_cli(commands); end
|
.register_routes(app) ⇒ Object
8
|
# File 'lib/rubyapi/plugin.rb', line 8
def self.register_routes(app); end
|