/tags/rel-1-3-26/SWIG/Examples/test-suite/ruby/overload_subtype_runme.rb
Ruby | 15 lines | 10 code | 5 blank | 0 comment | 4 complexity | 9ca07d20749c8cae1b436cfc37f749db MD5 | raw file
Possible License(s): LGPL-2.1, Cube, GPL-3.0, 0BSD, GPL-2.0
1require 'overload_subtype' 2 3include Overload_subtype 4 5f = Foo.new 6b = Bar.new 7 8if spam(f) != 1 9 raise RuntimeError, "foo" 10end 11 12if spam(b) != 2 13 raise RuntimeError, "bar" 14end 15