"Fossies" - the Fresh Open Source Software Archive 
Member "swig-4.1.1/Examples/test-suite/ruby/abstract_access_runme.rb" (30 Nov 2022, 399 Bytes) of package /linux/misc/swig-4.1.1.tar.gz:
As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) Ruby source code syntax highlighting (style:
standard) with prefixed line numbers and
code folding option.
Alternatively you can here
view or
download the uninterpreted source code file.
1 #!/usr/bin/env ruby
2 #
3 # Put script description here.
4 #
5 #
6 #
7 #
8 #
9
10 require 'swig_assert'
11 require 'abstract_access'
12
13 include Abstract_access
14
15 begin
16 a = A.new
17 rescue TypeError
18 swig_assert(true, binding, 'A.new')
19 end
20
21 begin
22 b = B.new
23 rescue TypeError
24 swig_assert(true, binding, 'B.new')
25 end
26
27 begin
28 c = C.new
29 rescue TypeError
30 swig_assert(true, binding, 'C.new')
31 end
32
33 swig_assert( 'D.new' )
34