/trunk/Examples/test-suite/ruby/using_protected_runme.rb
# · Ruby · 22 lines · 8 code · 6 blank · 8 comment · 2 complexity · 30eaef5ce031ae234e048dc5c256aded MD5 · raw file
- #!/usr/bin/env ruby
- #
- # Put description here
- #
- #
- #
- #
- #
- require 'swig_assert'
- require 'using_protected'
- include Using_protected
- f = FooBar.new
- f.x = 3
- if f.blah(4) != 4
- raise RuntimeError, "blah(int)"
- end