/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
- require 'overload_subtype'
- include Overload_subtype
- f = Foo.new
- b = Bar.new
- if spam(f) != 1
- raise RuntimeError, "foo"
- end
- if spam(b) != 2
- raise RuntimeError, "bar"
- end