Class: Pod::Command::ARGV

Inherits:
Array
  • Object
show all
Defined in:
lib/cocoapods/command.rb

Instance Method Summary collapse

Instance Method Details

#argumentsObject



28
# File 'lib/cocoapods/command.rb', line 28

def arguments;      self - options;                      end

#option(name) ⇒ Object



29
# File 'lib/cocoapods/command.rb', line 29

def option(name);   !!delete(name);                      end

#optionsObject



27
# File 'lib/cocoapods/command.rb', line 27

def options;        select { |x| x.to_s[0,1] == '-' };   end

#shift_argumentObject



30
# File 'lib/cocoapods/command.rb', line 30

def shift_argument; (arg = arguments[0]) && delete(arg); end