Class: Ppl::Command::Age
- Inherits:
-
Application::Command
- Object
- Application::Command
- Ppl::Command::Age
- Defined in:
- lib/ppl/command/age.rb
Instance Attribute Summary collapse
-
#list_format ⇒ Object
writeonly
Sets the attribute list_format.
-
#show_format ⇒ Object
writeonly
Sets the attribute show_format.
Attributes inherited from Application::Command
Instance Method Summary collapse
Methods inherited from Application::Command
Instance Attribute Details
#list_format=(value) ⇒ Object (writeonly)
Sets the attribute list_format
6 7 8 |
# File 'lib/ppl/command/age.rb', line 6 def list_format=(value) @list_format = value end |
#show_format=(value) ⇒ Object (writeonly)
Sets the attribute show_format
7 8 9 |
# File 'lib/ppl/command/age.rb', line 7 def show_format=(value) @show_format = value end |
Instance Method Details
#execute(input, output) ⇒ Object
13 14 15 16 |
# File 'lib/ppl/command/age.rb', line 13 def execute(input, output) action = determine_action(input) send(action, input, output) end |
#options(parser, options) ⇒ Object
9 10 11 |
# File 'lib/ppl/command/age.rb', line 9 def (parser, ) parser. = "usage: ppl age" end |