[ruby] make std::list include Enumerable.
This commit is contained in:
parent
9f43082786
commit
c88b9e8777
2 changed files with 9 additions and 0 deletions
8
Examples/test-suite/ruby/li_std_list_runme.rb
Normal file
8
Examples/test-suite/ruby/li_std_list_runme.rb
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
require 'swig_assert'
|
||||
|
||||
require 'li_std_list'
|
||||
|
||||
include Li_std_list
|
||||
|
||||
x = DoubleList.new([1,2,3])
|
||||
swig_assert_equal("[1.0]", "x.find_all{|e| e == 1 }", binding)
|
||||
Loading…
Add table
Add a link
Reference in a new issue