Class: Subnets::IP
- Inherits:
-
Object
- Object
- Subnets::IP
- Defined in:
- ext/subnets/ext.c
Instance Method Summary collapse
Instance Method Details
#inspect ⇒ Object
1017 1018 1019 1020 1021 1022 1023 1024 |
# File 'ext/subnets/ext.c', line 1017 VALUE method_ip_inspect(VALUE ip) { VALUE fmt = rb_str_new_cstr("#<%s %s>"); VALUE args = rb_ary_new_from_args(2, rb_funcall(ip, rb_intern("class"), 0), rb_funcall(ip, rb_intern("to_s"), 0)); return rb_funcall(fmt, rb_intern("%"), 1, args); } |