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:
Gonzalo Garramuno 2007-05-03 06:58:55 +00:00
commit f8ee6e65fe
3 changed files with 1135 additions and 31 deletions

File diff suppressed because it is too large Load diff

View file

@ -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, "]" );

View file

@ -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, "}" );