- update to new syntax
authordmacvicar <dmacvicar@e0cc52ee-31ee-0310-8b87-e83c4596d67c>
Fri, 23 Nov 2007 13:01:19 +0000 (13:01 +0000)
committerdmacvicar <dmacvicar@e0cc52ee-31ee-0310-8b87-e83c4596d67c>
Fri, 23 Nov 2007 13:01:19 +0000 (13:01 +0000)
git-svn-id: http://svn.opensuse.org/svn/yast/trunk/ruby-bindings@42365 e0cc52ee-31ee-0310-8b87-e83c4596d67c

examples/ruby/module-timezone.rb

index 09fca27..467b2ce 100644 (file)
@@ -1,7 +1,7 @@
 require 'yast'
+require 'ycp/timezone'
 
-m = YaST::Module.new("Timezone")
-zonemap = m.get_zonemap()
+zonemap = YCP::Timezone::get_zonemap
 puts zonemap.class
 zonemap.each do | element |
   element.each do | key, value |