ruby-changes:30401
From: zzak <ko1@a...>
Date: Sat, 10 Aug 2013 09:19:50 +0900 (JST)
Subject: [ruby-changes:30401] zzak:r42480 (trunk): * proc.c: [DOC] rdoc code formatting
zzak 2013-08-10 09:19:44 +0900 (Sat, 10 Aug 2013) New Revision: 42480 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=42480 Log: * proc.c: [DOC] rdoc code formatting Modified files: trunk/ChangeLog trunk/proc.c Index: ChangeLog =================================================================== --- ChangeLog (revision 42479) +++ ChangeLog (revision 42480) @@ -1,3 +1,7 @@ https://github.com/ruby/ruby/blob/trunk/ChangeLog#L1 +Sat Aug 10 09:19:04 2013 Zachary Scott <e@z...> + + * proc.c: [DOC] rdoc code formatting + Sat Aug 10 09:12:01 2013 Nobuyoshi Nakada <nobu@r...> * parse.y (rb_id_attrset): check if the argument is valid type as an Index: proc.c =================================================================== --- proc.c (revision 42479) +++ proc.c (revision 42480) @@ -448,15 +448,15 @@ check_local_id(VALUE bindval, volatile V https://github.com/ruby/ruby/blob/trunk/proc.c#L448 * * Returns a +value+ of local variable +symbol+. * - * def foo - * a = 1 - * binding.local_variable_get(:a) #=> 1 - * binding.local_variable_get(:b) #=> NameError - * end + * def foo + * a = 1 + * binding.local_variable_get(:a) #=> 1 + * binding.local_variable_get(:b) #=> NameError + * end * * This method is short version of the following code. * - * binding.eval("#{symbol}") + * binding.eval("#{symbol}") * */ static VALUE @@ -485,17 +485,17 @@ bind_local_variable_get(VALUE bindval, V https://github.com/ruby/ruby/blob/trunk/proc.c#L485 * * Set local variable named +symbol+ as +obj+. * - * def foo - * a = 1 - * b = binding - * b.local_variable_set(:a, 2) # set existing local variable `a' - * b.local_variable_set(:b, 3) # create new local variable `b' - * # `b' exists only in binding. - * b.local_variable_get(:a) #=> 2 - * b.local_variable_get(:b) #=> 3 - * p a #=> 2 - * p b #=> NameError - * end + * def foo + * a = 1 + * b = binding + * b.local_variable_set(:a, 2) # set existing local variable `a' + * b.local_variable_set(:b, 3) # create new local variable `b' + * # `b' exists only in binding. + * b.local_variable_get(:a) #=> 2 + * b.local_variable_get(:b) #=> 3 + * p a #=> 2 + * p b #=> NameError + * end * * This method is a similar behavior of the following code * @@ -529,15 +529,15 @@ bind_local_variable_set(VALUE bindval, V https://github.com/ruby/ruby/blob/trunk/proc.c#L529 * * Returns a +true+ if a local variable +symbol+ exists. * - * def foo - * a = 1 - * binding.local_variable_defined?(:a) #=> true - * binding.local_variable_defined?(:b) #=> false - * end + * def foo + * a = 1 + * binding.local_variable_defined?(:a) #=> true + * binding.local_variable_defined?(:b) #=> false + * end * * This method is short version of the following code. * - * binding.eval("defined?(#{symbol}) == 'local-variable'") + * binding.eval("defined?(#{symbol}) == 'local-variable'") * */ static VALUE -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/