From 26134a6dc13f8cd6af6692ae53d440d7ea9deb13 Mon Sep 17 00:00:00 2001 From: marcandre Date: Mon, 17 May 2010 21:50:00 +0000 Subject: * array.c: Documentation: change => in call-seq to ->. Harmonize "#=>" in examples. [ruby-core:30206] * bignum.c: ditto * class.c: ditto * compar.c: ditto * cont.c: ditto * dir.c: ditto * encoding.c: ditto * enum.c: ditto * enumerator.c: ditto * error.c: ditto * eval.c: ditto * file.c: ditto * gc.c: ditto * hash.c: ditto * io.c: ditto * load.c: ditto * marshal.c: ditto * math.c: ditto * numeric.c: ditto * object.c: ditto * pack.c: ditto * proc.c: ditto * process.c: ditto * random.c: ditto * range.c: ditto * re.c: ditto * ruby.c: ditto * signal.c: ditto * sprintf.c: ditto * string.c: ditto * struct.c: ditto * thread.c: ditto * time.c: ditto * transcode.c: ditto * variable.c: ditto * vm_eval.c: ditto * vm_method.c: ditto git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_2@27870 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- variable.c | 28 ++++++++++++++-------------- 1 file changed, 14 insertions(+), 14 deletions(-) (limited to 'variable.c') diff --git a/variable.c b/variable.c index d7b99f180b..f27b73841b 100644 --- a/variable.c +++ b/variable.c @@ -171,7 +171,7 @@ classname(VALUE klass) /* * call-seq: - * mod.name => string + * mod.name -> string * * Returns the name of the module mod. Returns nil for anonymous modules. */ @@ -541,8 +541,8 @@ rb_trace_eval(VALUE cmd, VALUE val) /* * call-seq: - * trace_var(symbol, cmd ) => nil - * trace_var(symbol) {|val| block } => nil + * trace_var(symbol, cmd ) -> nil + * trace_var(symbol) {|val| block } -> nil * * Controls tracing of assignments to global variables. The parameter * +symbol_ identifies the variable (as either a string name or a @@ -614,7 +614,7 @@ remove_trace(struct global_variable *var) /* * call-seq: - * untrace_var(symbol [, cmd] ) => array or nil + * untrace_var(symbol [, cmd] ) -> array or nil * * Removes tracing for the specified command on the given global * variable and returns +nil+. If no command is specified, @@ -750,7 +750,7 @@ gvar_i(ID key, struct global_entry *entry, VALUE ary) /* * call-seq: - * global_variables => array + * global_variables -> array * * Returns an array of the names of global variables. * @@ -1246,7 +1246,7 @@ ivar_i(ID key, VALUE val, VALUE ary) /* * call-seq: - * obj.instance_variables => array + * obj.instance_variables -> array * * Returns an array of instance variable names for the receiver. Note * that simply defining an accessor does not create the corresponding @@ -1273,7 +1273,7 @@ rb_obj_instance_variables(VALUE obj) /* * call-seq: - * obj.remove_instance_variable(symbol) => obj + * obj.remove_instance_variable(symbol) -> obj * * Removes the named instance variable from obj, returning that * variable's value. @@ -1363,7 +1363,7 @@ const_missing(VALUE klass, ID id) /* * call-seq: - * mod.const_missing(sym) => obj + * mod.const_missing(sym) -> obj * * Invoked when a reference is made to an undefined constant in * mod. It is passed a symbol for the undefined constant, and @@ -1622,7 +1622,7 @@ rb_const_get_at(VALUE klass, ID id) /* * call-seq: - * remove_const(sym) => obj + * remove_const(sym) -> obj * * Removes the definition of the given constant, returning that * constant's value. Predefined classes and singleton objects (such as @@ -1729,15 +1729,15 @@ rb_const_list(void *data) /* * call-seq: - * mod.constants(inherit=true) => array + * mod.constants(inherit=true) -> array * * Returns an array of the names of the constants accessible in * mod. This includes the names of constants in any included * modules (example at start of section), unless the all * parameter is set to false. * - * IO.constants.include?(:SYNC) => true - * IO.constants(false).include?(:SYNC) => false + * IO.constants.include?(:SYNC) #=> true + * IO.constants(false).include?(:SYNC) #=> false * * Also see Module::const_defined?. */ @@ -2013,7 +2013,7 @@ cv_i(ID key, VALUE value, VALUE ary) /* * call-seq: - * mod.class_variables => array + * mod.class_variables -> array * * Returns an array of the names of class variables in mod. * @@ -2040,7 +2040,7 @@ rb_mod_class_variables(VALUE obj) /* * call-seq: - * remove_class_variable(sym) => obj + * remove_class_variable(sym) -> obj * * Removes the definition of the sym, returning that * constant's value. -- cgit v1.2.3