PageRenderTime 30ms CodeModel.GetById 1ms RepoModel.GetById 0ms app.codeStats 0ms

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

#
Ruby | 22 lines | 8 code | 6 blank | 8 comment | 2 complexity | 30eaef5ce031ae234e048dc5c256aded MD5 | raw file
Possible License(s): LGPL-2.1, Cube, GPL-3.0, 0BSD, GPL-2.0
  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