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
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