class Subnets::IP

Public Instance Methods

inspect() click to toggle source
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);
}