Mailinglist Archive: yast-devel (152 mails)

< Previous Next >
Re: [yast-devel] Re: [yast-commit] <rest-service> master : fix concerning limits
  • From: "Duncan Mac-Vicar P." <dmacvicar@xxxxxxx>
  • Date: Thu, 30 Jul 2009 11:10:35 +0200
  • Message-id: <200907301110.35706.dmacvicar@xxxxxxx>
On Friday 17 July 2009 10:29:32 josef reidinger wrote:
+
+ path = rrdfile.chomp(".rrd")

Also, while having the same effect, using this function gives more readability

File.basename("foo.txt", ".txt")
=> "foo"

+ path +="/" + key if key!="value" #do not take care about the
value flag + path = path.tr('-','_')

and again path + "/" + something should be File.join(..., ..., ...)

Duncan
--
To unsubscribe, e-mail: yast-devel+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: yast-devel+help@xxxxxxxxxxxx

< Previous Next >
References