PageRenderTime 72ms CodeModel.GetById 16ms RepoModel.GetById 0ms app.codeStats 0ms

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

#
Ruby | 24 lines | 10 code | 6 blank | 8 comment | 0 complexity | 779ad347ca6ac668fc62d1bf871b727c 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 'director_string'
  11. class B < Director_string::A
  12. def initialize(some_string)
  13. super(some_string)
  14. end
  15. end
  16. b = B.new("hello")
  17. b.get_first
  18. b.get(0)