PageRenderTime 97ms CodeModel.GetById 16ms RepoModel.GetById 8ms app.codeStats 0ms

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

#
Ruby | 21 lines | 6 code | 5 blank | 10 comment | 2 complexity | 9482fbe6d84cacf548d7df5b94d5088f 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 'class_ignore'
  11. a = Class_ignore::Bar.new
  12. # Even though we didn't wrap the Foo class, this call
  13. # to do_blah() should succeed.
  14. if Class_ignore.do_blah(a) != "Bar::blah"
  15. raise RuntimeError
  16. end