PageRenderTime 33ms CodeModel.GetById 13ms RepoModel.GetById 1ms app.codeStats 0ms

/tags/rel-1-3-29/SWIG/Examples/test-suite/ruby/class_ignore_runme.rb

#
Ruby | 10 lines | 5 code | 3 blank | 2 comment | 2 complexity | acd46e755d3957aac717e636e9d51ddb MD5 | raw file
Possible License(s): LGPL-2.1, Cube, GPL-3.0, 0BSD, GPL-2.0
  1. require 'class_ignore'
  2. a = Class_ignore::Bar.new
  3. # Even though we didn't wrap the Foo class, this call
  4. # to do_blah() should succeed.
  5. if Class_ignore.do_blah(a) != "Bar::blah"
  6. raise RuntimeError
  7. end