Class: Pod::Command::List::Links

Inherits:
Pod::Command::List show all
Defined in:
lib/pod/command/list.rb

Class Method Summary collapse

Instance Method Summary collapse

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

.optionsObject



13
14
15
16
17
# File 'lib/pod/command/list.rb', line 13

def self.options
  [[
    '--linked', 'List pods linked in the current project'
  ]].concat(super)
end

Instance Method Details

#runObject



24
25
26
# File 'lib/pod/command/list.rb', line 24

def run
  Pod::Command::Links.list @linked
end