Dear Juanjo Conti,

def UPCASEMETHODISNOTAPROBLEM(arg)
  puts arg
end

UPCASEMETHODISNOTAPROBLEM "although not recommended"

Abinoam Jr.



On Sun, Jul 20, 2014 at 11:09 PM, Juanjo Conti <jjconti / gmail.com> wrote:
> I got it!
>
> A can't be a method, because it's upcase!
>
>
> 2014-07-19 23:10 GMT-03:00 Ryan Davis <ryand-ruby / zenspider.com>:
>
>>
>> On Jul 19, 2014, at 18:50, Juanjo Conti <jjconti / gmail.com> wrote:
>>
>> > Right, thanks. But why that is not happening with a +"B"?
>>
>> Because you've already taught the interpreter that 'a' is a local
>> variable, so it knows it isn't `a(+"B")`, but `a + "B"`:
>>
>> >> pp RubyParser.new.parse "a = 'a'; a +B"
>> s(:block,
>>  s(:lasgn, :a, s(:str, "a")),
>>  s(:call, s(:lvar, :a), :+, s(:const, :B)))
>>
>
>
>
> --
> Juanjo Conti
> blog: http://www.juanjoconti.com.ar