Class: ShoutMetadata
- Inherits:
-
Object
- Object
- ShoutMetadata
- Defined in:
- ext/shout.c
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.new ⇒ Object
99 100 101 102 103 104 105 106 107 108 109 110 |
# File 'ext/shout.c', line 99 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
112 113 114 115 116 117 118 119 120 121 122 123 124 |
# File 'ext/shout.c', line 112 static VALUE (VALUE self, VALUE name, VALUE value) { *m; int err; Data_Get_Struct(self, , m); err = (m, StringValuePtr(name), StringValuePtr(value)); if(err != SHOUTERR_SUCCESS) { raise_nonspecific_shout_error(err); } return value; } |