Class: String
Instance Method Summary collapse
-
#blob=(bool) ⇒ Object
Sets the blob status of
str. -
#blob? ⇒ Boolean
Returns whether or not
stris a blob.
Instance Method Details
#blob=(bool) ⇒ Object
Sets the blob status of str.
539 540 541 542 543 544 545 546 |
# File 'ext/plist/plist.c', line 539 VALUE str_setBlob(VALUE self, VALUE b) { if (TYPE(b) == T_TRUE || TYPE(b) == T_FALSE) { return rb_ivar_set(self, id_blob, b); } else { rb_raise(rb_eArgError, "Argument 1 must be true or false"); return Qnil; } } |
#blob? ⇒ Boolean
Returns whether or not str is a blob.
525 526 527 528 529 530 531 532 |
# File 'ext/plist/plist.c', line 525 VALUE str_blob(VALUE self) { VALUE blob = rb_attr_get(self, id_blob); if (NIL_P(blob)) { return Qfalse; } else { return blob; } } |