Allows for a different mporting origin/HEAD origin/master
authorDuncan Mac-Vicar P <dmacvicar@suse.de>
Fri, 23 Nov 2007 10:00:12 +0000 (11:00 +0100)
committerDuncan Mac-Vicar P <dmacvicar@suse.de>
Fri, 23 Nov 2007 10:00:12 +0000 (11:00 +0100)
commite460c35d03311f9c4471528d48601cbc9ea6f7a0
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
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]