mirror of
https://github.com/ruby/ruby.git
synced 2025-08-23 13:04:13 +02:00
* ext/socket/mkconstants.rb: generate intern_family_noprefix.
* ext/socket/option.c (sockopt_inspect): use intern_family_noprefix not to show AF_ prefix. * ext/socket/ancdata.c (ancillary_inspect): ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@22187 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
810dd43a20
commit
97ba0d4aa7
4 changed files with 12 additions and 2 deletions
|
@ -599,7 +599,7 @@ ancillary_inspect(VALUE self)
|
|||
|
||||
ret = rb_sprintf("#<%s: ", rb_obj_classname(self));
|
||||
|
||||
family_id = intern_family(family);
|
||||
family_id = intern_family_noprefix(family);
|
||||
if (family_id)
|
||||
rb_str_cat2(ret, rb_id2name(family_id));
|
||||
else
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue