inspect()
public
Returns an inspect() string
summarizing the object state.
static VALUE mSyslog_inspect(VALUE self)
{
char buf[1024];
Check_Type(self, T_MODULE);
if (syslog_opened) {
snprintf(buf, sizeof(buf),
"<#%s: opened=true, ident=\"%s\", options=%d, facility=%d, mask=%d>",
rb_class2name(self),
syslog_ident,
syslog_options,
syslog_facility,
syslog_mask);
} else {
snprintf(buf, sizeof(buf),
"<#%s: opened=false>", rb_class2name(self));
}
return rb_str_new2(buf);
}