Allows for a different mporting
authordmacvicar <dmacvicar@e0cc52ee-31ee-0310-8b87-e83c4596d67c>
Fri, 23 Nov 2007 13:01:16 +0000 (13:01 +0000)
committerdmacvicar <dmacvicar@e0cc52ee-31ee-0310-8b87-e83c4596d67c>
Fri, 23 Nov 2007 13:01:16 +0000 (13:01 +0000)
commit66ffacf58ffb22ace951b853ad69ef6c685b1dde
treed4790ca5fca6682bbd2573fd907d3824de3deb37
parent6cb658d6289304dec2e0d27bafbf215ba270bba9
Allows for a different mporting

Instead of

require 'yast'
m = YaST::Module.new("Foo")
m.hello

We do

require 'ycp'
require 'ycp/foo'
YCP::Foo::hello

Much nicer and the symbols are declared so
you can even ask the module for its methods

Minor other improvements.
Calling is broken for now

git-svn-id: http://svn.opensuse.org/svn/yast/trunk/ruby-bindings@42363 e0cc52ee-31ee-0310-8b87-e83c4596d67c
12 files changed:
examples/ruby/module-storage-2.rb [new file with mode: 0644]
examples/ruby/ruby_from_ycp.ycp
examples/ruby/ycp-1.rb [new file with mode: 0644]
src/CMakeLists.txt
src/ruby/YCP.cc
src/ruby/YCP.rb [deleted file]
src/ruby/YaPI.pm.in [deleted file]
src/ruby/yast.rb
src/swig/CMakeLists.txt
src/swig/yast.i
src/swig/ycp.i [new file with mode: 0644]
src/swig/ycp.rb [new file with mode: 0644]