ronnie / dio.jp wrote:
> Please upgrade your code to actually "use" all the assigned
> local variables, in this case, to `var = "foo"; var = var`.

The problem is with binding:

	require 'erb'
	foo = :bar
	puts ERB.new('<%= foo %>').result(binding)

The above uses foo, but binding isn't handled by the parser.
Maybe the parser should not warn if the word `binding'
appears in scope?  And check for local variables named
`binding'...

But yes, this is annoying with ERB when I want my code
to be warning-clean.

Unsubscribe: <mailto:ruby-core-request / ruby-lang.org?subject=unsubscribe>
<http://lists.ruby-lang.org/cgi-bin/mailman/options/ruby-core>