PageRenderTime 6ms CodeModel.GetById 1ms app.highlight 3ms RepoModel.GetById 1ms app.codeStats 0ms

/trunk/Examples/test-suite/ruby/director_basic_runme.rb

#
Ruby | 36 lines | 17 code | 11 blank | 8 comment | 8 complexity | 9b27df44932a3acdc324230ac61af301 MD5 | raw file
 1#!/usr/bin/env ruby
 2#
 3# Put description here
 4#
 5# 
 6# 
 7# 
 8#
 9
10require 'swig_assert'
11
12require 'director_basic'
13
14class MyFoo < Director_basic::Foo
15  def ping
16    "MyFoo::ping()"
17  end
18end
19
20a = MyFoo.new
21
22raise RuntimeError if a.ping != "MyFoo::ping()"
23raise RuntimeError if a.pong != "Foo::pong();MyFoo::ping()"
24
25b = Director_basic::Foo.new
26
27raise RuntimeError if b.ping != "Foo::ping()"
28raise RuntimeError if b.pong != "Foo::pong();Foo::ping()"
29
30
31a = Director_basic::MyClass.new 
32a = Director_basic::MyClassT_i.new 
33
34
35a = Director_basic::MyClass.new 1
36a = Director_basic::MyClassT_i.new 1
37