PageRenderTime 21ms CodeModel.GetById 15ms app.highlight 4ms RepoModel.GetById 1ms app.codeStats 0ms

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

#
Ruby | 28 lines | 12 code | 8 blank | 8 comment | 2 complexity | b88facec3ca7257e5b01cfe47fe7aa5c 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_unroll'
13
14class MyFoo < Director_unroll::Foo
15  def ping
16    "MyFoo::ping()"
17  end
18end
19
20a = MyFoo.new
21
22b = Director_unroll::Bar.new
23
24b.set(a)
25c = b.get()
26
27raise RuntimeError if a != c
28