swig/Examples/test-suite/ruby/director_unroll_runme.rb
Gonzalo Garramuno 8742036cbd Removed macro stuff titles of author, copyright,
etc.



git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9785 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2007-05-06 18:02:24 +00:00

28 lines
283 B
Ruby

#!/usr/bin/env ruby
#
# Put description here
#
#
#
#
#
require 'swig_assert'
require 'director_unroll'
class MyFoo < Director_unroll::Foo
def ping
"MyFoo::ping()"
end
end
a = MyFoo.new
b = Director_unroll::Bar.new
b.set(a)
c = b.get()
raise RuntimeError if a != c