@@ -82,7 +82,7 @@ clone_method(ID mid, NODE *body, struct clone_method_data *data)
82
82
NODE * fbody = body -> nd_body -> nd_body ;
83
83
84
84
if (nd_type (fbody ) == RUBY_VM_METHOD_NODE ) {
85
- fbody = NEW_NODE (RUBY_VM_METHOD_NODE , 0 ,
85
+ fbody = NEW_NODE (RUBY_VM_METHOD_NODE , 0 ,
86
86
rb_iseq_clone ((VALUE )fbody -> nd_body , data -> klass ),
87
87
0 );
88
88
}
@@ -198,7 +198,7 @@ make_metametaclass(VALUE metaclass)
198
198
}
199
199
else {
200
200
metametaclass = rb_class_boot (Qnil );
201
- RBASIC (metametaclass )-> klass =
201
+ RBASIC (metametaclass )-> klass =
202
202
(RBASIC (RBASIC (metaclass )-> klass )-> klass == RBASIC (metaclass )-> klass )
203
203
? make_metametaclass (RBASIC (metaclass )-> klass )
204
204
: RBASIC (RBASIC (metaclass )-> klass )-> klass ;
@@ -212,9 +212,9 @@ make_metametaclass(VALUE metaclass)
212
212
while (FL_TEST (super_of_metaclass , T_ICLASS )) {
213
213
super_of_metaclass = RCLASS_SUPER (super_of_metaclass );
214
214
}
215
- RCLASS_SUPER (metametaclass ) =
215
+ RCLASS_SUPER (metametaclass ) =
216
216
rb_iv_get (RBASIC (super_of_metaclass )-> klass , "__attached__" ) == super_of_metaclass
217
- ? RBASIC (super_of_metaclass )-> klass
217
+ ? RBASIC (super_of_metaclass )-> klass
218
218
: make_metametaclass (super_of_metaclass );
219
219
OBJ_INFECT (metametaclass , RCLASS_SUPER (metametaclass ));
220
220
@@ -422,7 +422,7 @@ rb_include_module(VALUE klass, VALUE module)
422
422
if (!OBJ_UNTRUSTED (klass )) {
423
423
rb_secure (4 );
424
424
}
425
-
425
+
426
426
if (TYPE (module ) != T_MODULE ) {
427
427
Check_Type (module , T_MODULE );
428
428
}
@@ -461,16 +461,16 @@ rb_include_module(VALUE klass, VALUE module)
461
461
/*
462
462
* call-seq:
463
463
* mod.included_modules -> array
464
- *
464
+ *
465
465
* Returns the list of modules included in <i>mod</i>.
466
- *
466
+ *
467
467
* module Mixin
468
468
* end
469
- *
469
+ *
470
470
* module Outer
471
471
* include Mixin
472
472
* end
473
- *
473
+ *
474
474
* Mixin.included_modules #=> []
475
475
* Outer.included_modules #=> [Mixin]
476
476
*/
@@ -492,10 +492,10 @@ rb_mod_included_modules(VALUE mod)
492
492
/*
493
493
* call-seq:
494
494
* mod.include?(module) => true or false
495
- *
495
+ *
496
496
* Returns <code>true</code> if <i>module</i> is included in
497
497
* <i>mod</i> or one of <i>mod</i>'s ancestors.
498
- *
498
+ *
499
499
* module A
500
500
* end
501
501
* class B
@@ -525,15 +525,15 @@ rb_mod_include_p(VALUE mod, VALUE mod2)
525
525
/*
526
526
* call-seq:
527
527
* mod.ancestors -> array
528
- *
528
+ *
529
529
* Returns a list of modules included in <i>mod</i> (including
530
530
* <i>mod</i> itself).
531
- *
531
+ *
532
532
* module Mod
533
533
* include Math
534
534
* include Comparable
535
535
* end
536
- *
536
+ *
537
537
* Mod.ancestors #=> [Mod, Comparable, Math]
538
538
* Math.ancestors #=> [Math]
539
539
*/
@@ -612,7 +612,7 @@ method_entry(ID key, NODE *body, st_table *list)
612
612
if (key == ID_ALLOCATOR ) {
613
613
return ST_CONTINUE ;
614
614
}
615
-
615
+
616
616
if (!st_lookup (list , key , 0 )) {
617
617
if (body == 0 || !body -> nd_body -> nd_body ) {
618
618
type = -1 ; /* none */
@@ -658,14 +658,14 @@ class_instance_method_list(int argc, VALUE *argv, VALUE mod, int (*func) (ID, lo
658
658
/*
659
659
* call-seq:
660
660
* mod.instance_methods(include_super=true) => array
661
- *
661
+ *
662
662
* Returns an array containing the names of instance methods that is callable
663
663
* from outside in the receiver. For a module, these are the public methods;
664
664
* for a class, they are the instance (not singleton) methods. With no
665
665
* argument, or with an argument that is <code>false</code>, the
666
666
* instance methods in <i>mod</i> are returned, otherwise the methods
667
667
* in <i>mod</i> and <i>mod</i>'s superclasses are returned.
668
- *
668
+ *
669
669
* module A
670
670
* def method1() end
671
671
* end
@@ -675,7 +675,7 @@ class_instance_method_list(int argc, VALUE *argv, VALUE mod, int (*func) (ID, lo
675
675
* class C < B
676
676
* def method3() end
677
677
* end
678
- *
678
+ *
679
679
* A.instance_methods #=> [:method1]
680
680
* B.instance_methods(false) #=> [:method2]
681
681
* C.instance_methods(false) #=> [:method3]
@@ -691,7 +691,7 @@ rb_class_instance_methods(int argc, VALUE *argv, VALUE mod)
691
691
/*
692
692
* call-seq:
693
693
* mod.protected_instance_methods(include_super=true) => array
694
- *
694
+ *
695
695
* Returns a list of the protected instance methods defined in
696
696
* <i>mod</i>. If the optional parameter is not <code>false</code>, the
697
697
* methods of any ancestors are included.
@@ -706,11 +706,11 @@ rb_class_protected_instance_methods(int argc, VALUE *argv, VALUE mod)
706
706
/*
707
707
* call-seq:
708
708
* mod.private_instance_methods(include_super=true) => array
709
- *
709
+ *
710
710
* Returns a list of the private instance methods defined in
711
711
* <i>mod</i>. If the optional parameter is not <code>false</code>, the
712
712
* methods of any ancestors are included.
713
- *
713
+ *
714
714
* module Mod
715
715
* def method1() end
716
716
* private :method1
@@ -729,7 +729,7 @@ rb_class_private_instance_methods(int argc, VALUE *argv, VALUE mod)
729
729
/*
730
730
* call-seq:
731
731
* mod.public_instance_methods(include_super=true) => array
732
- *
732
+ *
733
733
* Returns a list of the public instance methods defined in <i>mod</i>.
734
734
* If the optional parameter is not <code>false</code>, the methods of
735
735
* any ancestors are included.
@@ -744,30 +744,30 @@ rb_class_public_instance_methods(int argc, VALUE *argv, VALUE mod)
744
744
/*
745
745
* call-seq:
746
746
* obj.singleton_methods(all=true) => array
747
- *
747
+ *
748
748
* Returns an array of the names of singleton methods for <i>obj</i>.
749
749
* If the optional <i>all</i> parameter is true, the list will include
750
750
* methods in modules included in <i>obj</i>.
751
- *
751
+ *
752
752
* module Other
753
753
* def three() end
754
754
* end
755
- *
755
+ *
756
756
* class Single
757
757
* def Single.four() end
758
758
* end
759
- *
759
+ *
760
760
* a = Single.new
761
- *
761
+ *
762
762
* def a.one()
763
763
* end
764
- *
764
+ *
765
765
* class << a
766
766
* include Other
767
767
* def two()
768
768
* end
769
769
* end
770
- *
770
+ *
771
771
* Single.singleton_methods #=> [:four]
772
772
* a.singleton_methods(false) #=> [:two, :one]
773
773
* a.singleton_methods #=> [:two, :one, :three]
@@ -932,7 +932,7 @@ rb_scan_args(int argc, const VALUE *argv, const char *fmt, ...)
932
932
postargc = * q - '0' ;
933
933
nonpostargc = argc - postargc ;
934
934
}
935
- else {
935
+ else {
936
936
postargc = 0 ;
937
937
nonpostargc = argc ;
938
938
}
@@ -941,7 +941,7 @@ rb_scan_args(int argc, const VALUE *argv, const char *fmt, ...)
941
941
if (nonpostargc < 0 )
942
942
rb_raise (rb_eArgError , "wrong number of arguments (%d for %d)" ,
943
943
argc , postargc );
944
- goto rest_arg ;
944
+ goto rest_arg ;
945
945
}
946
946
else if (ISDIGIT (* p )) {
947
947
/* leading mandatory arguments */
0 commit comments