Use native ruby operators when it is possible

result in generated code is available - http://pastebin.suse.de/7254 ( sorry suse only as I don't find reasonable pastebin service which allows file upload )