Class: KDE::CmdLineArgs
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.(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.(u) if url.protocol.empty? res << url end end |