*** empty log message ***
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@5517 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
b8069b70f2
commit
e129a25a66
1 changed files with 20 additions and 0 deletions
20
SWIG/Examples/test-suite/ruby/director_abstract_runme.rb
Normal file
20
SWIG/Examples/test-suite/ruby/director_abstract_runme.rb
Normal file
|
|
@ -0,0 +1,20 @@
|
|||
require 'director_abstract'
|
||||
|
||||
class MyFoo < Director_abstract::Foo
|
||||
def ping
|
||||
"MyFoo::ping()"
|
||||
end
|
||||
end
|
||||
|
||||
|
||||
a = MyFoo.new
|
||||
|
||||
if a.ping != "MyFoo::ping()"
|
||||
raise RuntimeError, a.ping
|
||||
end
|
||||
|
||||
if a.pong != "Foo::pong();MyFoo::ping()"
|
||||
raise RuntimeError, a.pong
|
||||
end
|
||||
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue