Class: Bug::NotImplement
Defined Under Namespace
Classes: MyInteger
Class Method Summary collapse
- .ensure_raise(object, exc) ⇒ Object
- .ensured(object) ⇒ Object
- .new_duplicate(name, mem) ⇒ Object
- .new_duplicate_under(name, mem) ⇒ Object
- .rb_define_dummy_encoding(name) ⇒ Object
- .rb_str_dup(str) ⇒ Object
- .reset_leap_second_info ⇒ Object
- .shared_string?(str) ⇒ Boolean
- .sharing_with_shared?(str) ⇒ Boolean
Instance Method Summary collapse
-
#coderange ⇒ Object
return coderange without scan.
-
#coderange_scan ⇒ Object
scan coderange and return the result.
- #ellipsize(len) ⇒ Object
- #normalize_ospath ⇒ Object
- #notimplement ⇒ Object
Class Method Details
.ensure_raise(object, exc) ⇒ Object
28 29 30 31 32 |
# File 'ext/-test-/exception/ensured.c', line 28
static VALUE
ensure_raise(VALUE module, VALUE object, VALUE exc)
{
return rb_ensure(rb_yield, object, exc_raise, exc);
}
|
.ensured(object) ⇒ Object
15 16 17 18 19 |
# File 'ext/-test-/exception/ensured.c', line 15
static VALUE
ensured(VALUE module, VALUE object)
{
return rb_ensure(begin, object, ensure, object);
}
|
.new_duplicate(name, mem) ⇒ Object
3 4 5 6 7 8 9 |
# File 'ext/-test-/struct/duplicate.c', line 3
static VALUE
bug_struct_new_duplicate(VALUE obj, VALUE name, VALUE mem)
{
const char *n = NIL_P(name) ? 0 : StringValueCStr(name);
const char *m = StringValueCStr(mem);
return rb_struct_define(n, m, m, NULL);
}
|
.new_duplicate_under(name, mem) ⇒ Object
11 12 13 14 15 16 17 |
# File 'ext/-test-/struct/duplicate.c', line 11
static VALUE
bug_struct_new_duplicate_under(VALUE obj, VALUE name, VALUE mem)
{
const char *n = StringValueCStr(name);
const char *m = StringValueCStr(mem);
return rb_struct_define_under(obj, n, m, m, NULL);
}
|
.rb_define_dummy_encoding(name) ⇒ Object
4 5 6 7 8 9 |
# File 'ext/-test-/string/enc_dummy.c', line 4
VALUE
bug_rb_define_dummy_encoding(VALUE self, VALUE name)
{
int idx = rb_define_dummy_encoding(RSTRING_PTR(name));
return rb_enc_from_encoding(rb_enc_from_index(idx));
}
|
.rb_str_dup(str) ⇒ Object
5 6 7 8 9 10 |
# File 'ext/-test-/string/rb_str_dup.c', line 5
static VALUE
bug_rb_str_dup(VALUE self, VALUE str)
{
rb_check_type(str, T_STRING);
return rb_str_dup(str);
}
|
.reset_leap_second_info ⇒ Object
4 5 6 7 8 9 |
# File 'ext/-test-/time/leap_second.c', line 4
static VALUE
bug_time_s_reset_leap_second_info(VALUE klass)
{
ruby_reset_leap_second_info();
return Qnil;
}
|
.shared_string?(str) ⇒ Boolean
12 13 14 15 16 17 |
# File 'ext/-test-/string/rb_str_dup.c', line 12
static VALUE
bug_shared_string_p(VALUE self, VALUE str)
{
rb_check_type(str, T_STRING);
return RB_FL_TEST(str, RUBY_ELTS_SHARED) && RB_FL_TEST(str, RSTRING_NOEMBED) ? Qtrue : Qfalse;
}
|
.sharing_with_shared?(str) ⇒ Boolean
19 20 21 22 23 24 25 26 27 |
# File 'ext/-test-/string/rb_str_dup.c', line 19
static VALUE
bug_sharing_with_shared_p(VALUE self, VALUE str)
{
rb_check_type(str, T_STRING);
if (bug_shared_string_p(self, str)) {
return bug_shared_string_p(self, RSTRING(str)->as.heap.aux.shared);
}
return Qfalse;
}
|
Instance Method Details
#coderange ⇒ Object
return coderange without scan
24 25 26 27 28 |
# File 'ext/-test-/string/coderange.c', line 24
static VALUE
str_coderange(VALUE str)
{
return coderange_int2sym(ENC_CODERANGE(str));
}
|
#coderange_scan ⇒ Object
scan coderange and return the result
31 32 33 34 35 36 |
# File 'ext/-test-/string/coderange.c', line 31
static VALUE
str_coderange_scan(VALUE str)
{
ENC_CODERANGE_SET(str, ENC_CODERANGE_UNKNOWN);
return coderange_int2sym(rb_enc_str_coderange(str));
}
|
#ellipsize(len) ⇒ Object
3 4 5 6 7 |
# File 'ext/-test-/string/ellipsize.c', line 3
static VALUE
bug_str_ellipsize(VALUE str, VALUE len)
{
return rb_str_ellipsize(str, NUM2LONG(len));
}
|
#normalize_ospath ⇒ Object
4 5 6 7 8 |
# File 'ext/-test-/string/normalize.c', line 4
static VALUE
normalize_ospath(VALUE str)
{
return rb_str_normalize_ospath(RSTRING_PTR(str), RSTRING_LEN(str));
}
|