Class: Ppl::Command::Attribute
- Inherits:
-
Application::Command
- Object
- Application::Command
- Ppl::Command::Attribute
- Defined in:
- lib/ppl/command/attribute.rb
Instance Attribute Summary collapse
-
#attribute ⇒ Object
writeonly
Sets the attribute attribute.
-
#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
#attribute=(value) ⇒ Object (writeonly)
Sets the attribute attribute
3 4 5 |
# File 'lib/ppl/command/attribute.rb', line 3 def attribute=(value) @attribute = value end |
#list_format=(value) ⇒ Object (writeonly)
Sets the attribute list_format
4 5 6 |
# File 'lib/ppl/command/attribute.rb', line 4 def list_format=(value) @list_format = value end |
#show_format=(value) ⇒ Object (writeonly)
Sets the attribute show_format
5 6 7 |
# File 'lib/ppl/command/attribute.rb', line 5 def show_format=(value) @show_format = value end |
Instance Method Details
#execute(input, output) ⇒ Object
7 8 9 10 |
# File 'lib/ppl/command/attribute.rb', line 7 def execute(input, output) action = determine_action(input) send(action, input, output) end |