Class: Ppl::Command::Url
- Inherits:
-
Attribute
- Object
- Application::Command
- Attribute
- Ppl::Command::Url
- Defined in:
- lib/ppl/command/url.rb
Instance Attribute Summary
Attributes inherited from Attribute
#attribute, #list_format, #show_format
Attributes inherited from Application::Command
Instance Method Summary collapse
-
#initialize ⇒ Url
constructor
A new instance of Url.
- #options(parser, options) ⇒ Object
Methods inherited from Attribute
Methods inherited from Application::Command
Constructor Details
#initialize ⇒ Url
Returns a new instance of Url.
6 7 8 |
# File 'lib/ppl/command/url.rb', line 6 def initialize @attribute = :urls end |
Instance Method Details
#options(parser, options) ⇒ Object
10 11 12 13 14 15 |
# File 'lib/ppl/command/url.rb', line 10 def (parser, ) parser. = "usage: ppl url <contact> [<url>]" parser.on("-d", "--delete", "delete url") do [:delete] = true end end |