Updated Ruby manual to enhance section on the STL.
Fixed inspect() method on map and rubycontainer not using inspect to print out elements. git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9759 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
fe6df177db
commit
f8ee6e65fe
3 changed files with 1135 additions and 31 deletions
1160
Doc/Manual/Ruby.html
1160
Doc/Manual/Ruby.html
File diff suppressed because it is too large
Load diff
|
|
@ -530,7 +530,7 @@ namespace swig
|
|||
{
|
||||
if (comma) str = rb_str_cat2( str, "," );
|
||||
tmp = swig::from<Sequence::value_type>( *i );
|
||||
tmp = rb_obj_as_string( tmp );
|
||||
tmp = rb_inspect( tmp );
|
||||
str = rb_str_buf_append( str, tmp );
|
||||
}
|
||||
str = rb_str_cat2( str, "]" );
|
||||
|
|
|
|||
|
|
@ -351,11 +351,11 @@
|
|||
{
|
||||
if (comma) str = rb_str_cat2( str, "," );
|
||||
tmp = swig::from< Map::key_type >( i->first );
|
||||
tmp = rb_obj_as_string( tmp );
|
||||
tmp = rb_inspect( tmp );
|
||||
str = rb_str_buf_append( str, tmp );
|
||||
str = rb_str_cat2( str, "=>" );
|
||||
tmp = swig::from< Map::mapped_type >( i->second );
|
||||
tmp = rb_obj_as_string( tmp );
|
||||
tmp = rb_inspect( tmp );
|
||||
str = rb_str_buf_append( str, tmp );
|
||||
}
|
||||
str = rb_str_cat2( str, "}" );
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue