ruby-changes:34160
From: nobu <ko1@a...>
Date: Fri, 30 May 2014 10:22:28 +0900 (JST)
Subject: [ruby-changes:34160] nobu:r46241 (trunk): erb.rb: ERB#result does not accept a proc.
nobu 2014-05-30 10:22:23 +0900 (Fri, 30 May 2014) New Revision: 46241 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?revision=46241&view=revision Log: erb.rb: ERB#result does not accept a proc. * lib/erb.rb (result): [DOC] no longer accepts a Proc, as Kernel.eval does not. [fix GH-619] Modified files: trunk/ChangeLog trunk/lib/erb.rb Index: ChangeLog =================================================================== --- ChangeLog (revision 46240) +++ ChangeLog (revision 46241) @@ -1,3 +1,8 @@ https://github.com/ruby/ruby/blob/trunk/ChangeLog#L1 +Fri May 30 10:22:21 2014 Mark Lorenz <mlorenz@c...> + + * lib/erb.rb (result): [DOC] no longer accepts a Proc, as + Kernel.eval does not. [fix GH-619] + Fri May 30 07:25:46 2014 Tanaka Akira <akr@f...> * ext/-test-/dir: Dir#fileno implemented. Index: lib/erb.rb =================================================================== --- lib/erb.rb (revision 46240) +++ lib/erb.rb (revision 46241) @@ -837,7 +837,7 @@ class ERB https://github.com/ruby/ruby/blob/trunk/lib/erb.rb#L837 # the results of that code. (See ERB::new for details on how this process # can be affected by _safe_level_.) # - # _b_ accepts a Binding or Proc object which is used to set the context of + # _b_ accepts a Binding object which is used to set the context of # code evaluation. # def result(b=new_toplevel) -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/