Class: ShoutMetadata
- Inherits:
-
Object
- Object
- ShoutMetadata
- Defined in:
- ext/shout.c
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.new ⇒ Object
93 94 95 96 97 98 99 100 101 102 103 104 |
# File 'ext/shout.c', line 93 static VALUE (VALUE class) { *m; VALUE ; m = (); = Data_Wrap_Struct(class, 0, , m); rb_obj_call_init(, 0, 0); return ; } |
Instance Method Details
#add(name, value) ⇒ Object
106 107 108 109 110 111 112 113 114 115 116 117 118 |
# File 'ext/shout.c', line 106 static VALUE (VALUE self, VALUE name, VALUE value) { *m; int err; Data_Get_Struct(self, , m); err = (m, STR2CSTR(name), STR2CSTR(value)); if(err != SHOUTERR_SUCCESS) { raise_nonspecific_shout_error(err); } return value; } |