PageRenderTime 11ms CodeModel.GetById 2ms app.highlight 6ms RepoModel.GetById 1ms 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
 1#!/usr/bin/env ruby
 2#
 3# Put description here
 4#
 5# 
 6# 
 7# 
 8#
 9
10require 'swig_assert'
11
12require 'using_protected'
13
14include Using_protected
15
16f = FooBar.new
17f.x = 3
18
19if f.blah(4) != 4
20  raise RuntimeError, "blah(int)"
21end
22