Class: Ppl::Application::Command
- Inherits:
-
Object
- Object
- Ppl::Application::Command
show all
- Defined in:
- lib/ppl/application/command.rb
Direct Known Subclasses
Command::Add, Command::Age, Command::Attribute, Command::Bday, Command::Completion, Command::Email, Command::External, Command::Help, Command::Init, Command::Ls, Command::Mutt, Command::Mv, Command::Name, Command::Phone, Command::Post, Command::Rm, Command::Scrape, Command::Shell, Command::Show, Command::Version
Constant Summary
collapse
- @@property_values =
{}
Instance Attribute Summary collapse
Class Method Summary
collapse
Instance Method Summary
collapse
Instance Attribute Details
#storage ⇒ Object
Returns the value of attribute storage.
5
6
7
|
# File 'lib/ppl/application/command.rb', line 5
def storage
@storage
end
|
Class Method Details
.add_property(name) ⇒ Object
14
15
16
17
18
19
|
# File 'lib/ppl/application/command.rb', line 14
def self.add_property(name)
@@property_values[name] = {}
self.add_static_property_setter(name)
self.add_instance_property_getter(name)
self.add_instance_property_setter(name)
end
|
Instance Method Details
#execute(input, output) ⇒ Object
7
8
9
|
# File 'lib/ppl/application/command.rb', line 7
def execute(input, output)
raise NotImplementedError
end
|
#options(parser, options) ⇒ Object
11
12
|
# File 'lib/ppl/application/command.rb', line 11
def options(parser, options)
end
|