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

# · Ruby · 22 lines · 8 code · 6 blank · 8 comment · 2 complexity · 30eaef5ce031ae234e048dc5c256aded MD5 · raw file

  1. #!/usr/bin/env ruby
  2. #
  3. # Put description here
  4. #
  5. #
  6. #
  7. #
  8. #
  9. require 'swig_assert'
  10. require 'using_protected'
  11. include Using_protected
  12. f = FooBar.new
  13. f.x = 3
  14. if f.blah(4) != 4
  15. raise RuntimeError, "blah(int)"
  16. end