Class: Pod::Command::List::Links
- Inherits:
-
Pod::Command::List
- Object
- Pod::Command::List
- Pod::Command::List::Links
- Defined in:
- lib/pod/command/list.rb
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(argv) ⇒ Links
constructor
A new instance of Links.
- #run ⇒ Object
Constructor Details
#initialize(argv) ⇒ Links
Returns a new instance of Links.
19 20 21 22 |
# File 'lib/pod/command/list.rb', line 19 def initialize(argv) @linked = argv.flag?('linked') super end |
Class Method Details
.options ⇒ Object
13 14 15 16 17 |
# File 'lib/pod/command/list.rb', line 13 def self. [[ '--linked', 'List pods linked in the current project' ]].concat(super) end |
Instance Method Details
#run ⇒ Object
24 25 26 |
# File 'lib/pod/command/list.rb', line 24 def run Pod::Command::Links.list @linked end |