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.
6
7
8
|
# File 'lib/ppl/application/command.rb', line 6
def storage
@storage
end
|
Class Method Details
.add_property(name) ⇒ Object
15
16
17
18
19
20
|
# File 'lib/ppl/application/command.rb', line 15
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
8
9
10
|
# File 'lib/ppl/application/command.rb', line 8
def execute(input, output)
raise NotImplementedError
end
|
#options(parser, options) ⇒ Object
12
13
|
# File 'lib/ppl/application/command.rb', line 12
def options(parser, options)
end
|