Class: KDE::CmdLineArgs

Inherits:
Object show all
Defined in:
lib/ruber/kde_sugar.rb

Instance Method Summary (collapse)

Instance Method Details

- (Object) files



162
163
164
165
166
# File 'lib/ruber/kde_sugar.rb', line 162

def files
  res = []
  count.times{|i| res << ::File.expand_path(arg(i))}
  res
end

- (Object) urls



168
169
170
171
172
173
174
# File 'lib/ruber/kde_sugar.rb', line 168

def urls
  count.times.inject([]) do |res, i|
    url = KDE::Url.new u
    url.path = File.expand_path(u) if url.protocol.empty?
    res << url
  end
end