PageRenderTime 48ms CodeModel.GetById 21ms RepoModel.GetById 0ms 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
Possible License(s): LGPL-2.1, Cube, GPL-3.0, 0BSD, GPL-2.0
  1. #!/usr/bin/env ruby
  2. #
  3. # Put description here
  4. #
  5. #
  6. #
  7. #
  8. #
  9. require 'swig_assert'
  10. require 'director_unroll'
  11. class MyFoo < Director_unroll::Foo
  12. def ping
  13. "MyFoo::ping()"
  14. end
  15. end
  16. a = MyFoo.new
  17. b = Director_unroll::Bar.new
  18. b.set(a)
  19. c = b.get()
  20. raise RuntimeError if a != c