From 99d65b14b4ec3a546a28b6b17b3b4553eaf27b2f Mon Sep 17 00:00:00 2001 From: nobu Date: Tue, 5 Jun 2007 04:25:10 +0000 Subject: * compile.c, dir.c, eval.c, eval_jump.h, eval_method.h, numeric.c, pack.c, parse.y, re.c, thread.c, vm.c, vm_dump.c, call_cfunc.ci, thread_pthread.ci, thread_win32.ci: fixed indentation. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@12431 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- eval_method.h | 36 ++++++++++++++++++------------------ 1 file changed, 18 insertions(+), 18 deletions(-) (limited to 'eval_method.h') diff --git a/eval_method.h b/eval_method.h index fb19af5f25..ac092d7bcc 100644 --- a/eval_method.h +++ b/eval_method.h @@ -317,7 +317,7 @@ rb_remove_method(VALUE klass, const char *name) /* * call-seq: * remove_method(symbol) => self - * + * * Removes the method identified by _symbol_ from the current * class. For an example, see Module.undef_method. */ @@ -460,8 +460,8 @@ rb_undef(VALUE klass, ID id) VALUE obj = rb_iv_get(klass, "__attached__"); switch (TYPE(obj)) { - case T_MODULE: - case T_CLASS: + case T_MODULE: + case T_CLASS: c = obj; s0 = ""; } @@ -487,12 +487,12 @@ rb_undef(VALUE klass, ID id) /* * call-seq: * undef_method(symbol) => self - * + * * Prevents the current class from responding to calls to the named * method. Contrast this with remove_method, which deletes * the method from the particular class; Ruby will still search * superclasses and mixed-in modules for a possible receiver. - * + * * class Parent * def hello * puts "In parent" @@ -503,25 +503,25 @@ rb_undef(VALUE klass, ID id) * puts "In child" * end * end - * - * + * + * * c = Child.new * c.hello - * - * + * + * * class Child * remove_method :hello # remove from child, still in parent * end * c.hello - * - * + * + * * class Child * undef_method :hello # prevent any calls to 'hello' * end * c.hello - * + * * produces: - * + * * In child * In parent * prog.rb:23: undefined method `hello' for # (NoMethodError) @@ -563,7 +563,7 @@ rb_alias(VALUE klass, ID name, ID def) } orig_fbody->nd_cnt++; - + if (st_lookup(RCLASS(klass)->m_tbl, name, (st_data_t *) & node)) { if (node) { if (RTEST(ruby_verbose) && node->nd_cnt == 0 && node->nd_body) { @@ -594,10 +594,10 @@ rb_alias(VALUE klass, ID name, ID def) /* * call-seq: * alias_method(new_name, old_name) => self - * + * * Makes new_name a new copy of the method old_name. This can * be used to retain access to methods that are overridden. - * + * * module Mod * alias_method :orig_exit, :exit * def exit(code=0) @@ -607,9 +607,9 @@ rb_alias(VALUE klass, ID name, ID def) * end * include Mod * exit(99) - * + * * produces: - * + * * Exiting with code 99 */ -- cgit v1.2.3