Class: KDE::CmdLineArgs

Inherits:
Object show all
Defined in:
lib/rui/toolkits/kde/kde.rb,
lib/rui/toolkits/qt/qt.rb

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(args) ⇒ CmdLineArgs

Returns a new instance of CmdLineArgs.



219
220
221
# File 'lib/rui/toolkits/qt/qt.rb', line 219

def initialize(args)
  @args = args
end

Class Method Details

.parsed_argsObject



215
216
217
# File 'lib/rui/toolkits/qt/qt.rb', line 215

def self.parsed_args
  new(ARGV)
end

Instance Method Details

#[](i) ⇒ Object



72
73
74
# File 'lib/rui/toolkits/kde/kde.rb', line 72

def [](i)
  arg(i)
end

#countObject



227
228
229
# File 'lib/rui/toolkits/qt/qt.rb', line 227

def count
  @args.size
end

#is_set(name) ⇒ Object



76
77
78
# File 'lib/rui/toolkits/kde/kde.rb', line 76

def is_set(name)
  isSet(Qt::ByteArray.new(name))
end