/trunk/Examples/test-suite/ruby/casts_runme.rb
Ruby | 23 lines | 9 code | 6 blank | 8 comment | 0 complexity | a48404c3d5afb4d9187151da9246f9fd MD5 | raw file
Possible License(s): LGPL-2.1, Cube, GPL-3.0, 0BSD, GPL-2.0
- #!/usr/bin/env ruby
- #
- # Put script description here.
- #
- #
- #
- #
- #
- require 'swig_assert'
- require 'casts'
- include Casts
- swig_assert( B.ancestors.include?(A), 'B.ancestors.include? A' )
- a = A.new
- a.hello
- b = B.new
- b.hello
- swig_assert( b.kind_of?( A ), ' B.kind_of? A' )