PageRenderTime 12ms CodeModel.GetById 1ms app.highlight 6ms RepoModel.GetById 2ms app.codeStats 0ms

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

#
Ruby | 23 lines | 9 code | 6 blank | 8 comment | 0 complexity | a48404c3d5afb4d9187151da9246f9fd MD5 | raw file
 1#!/usr/bin/env ruby
 2#
 3# Put script description here.
 4#
 5# 
 6# 
 7# 
 8#
 9
10require 'swig_assert'
11require 'casts'
12
13include Casts
14
15swig_assert( B.ancestors.include?(A), 'B.ancestors.include? A' )
16
17a = A.new
18a.hello
19
20b = B.new
21b.hello
22
23swig_assert( b.kind_of?( A ), ' B.kind_of? A' )