146 147 148 149 150
# File 'lib/ruber/kde_sugar.rb', line 146 def files res = [] count.times{|i| res << ::File.expand_path(arg(i))} res end
152 153 154 155 156 157 158
# File 'lib/ruber/kde_sugar.rb', line 152 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