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]

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@46241 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
nobu 2014-05-30 01:22:23 +00:00
Родитель 83ead3c4a7
Коммит 4e741f4b89
2 изменённых файлов: 6 добавлений и 1 удалений

Просмотреть файл

@ -1,3 +1,8 @@
Fri May 30 10:22:21 2014 Mark Lorenz <mlorenz@covermymeds.com>
* 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@fsij.org>
* ext/-test-/dir: Dir#fileno implemented.

Просмотреть файл

@ -837,7 +837,7 @@ class ERB
# 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)