From: Intransition Date: 2011-12-21T03:21:15+09:00 Subject: why the warning, charlie brown? ------=_Part_28_30798602.1324405273618 Content-Type: multipart/alternative; boundary="----=_Part_29_31608691.1324405273622" ------=_Part_29_31608691.1324405273622 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit >> charlie = Class.new do ?> def initialize >> @@brown = "#802A2A" >> end >> end => # >> charlie.new (irb):8: warning: class variable access from toplevel => #<#:0x00000002a85528> ------=_Part_29_31608691.1324405273622 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit
>> charlie = Class.new do
?>   def initialize
>>     @@brown = "#802A2A"
>>   end
>> end
=> #<Class:0x00000002a8b838>
>> charlie.new
(irb):8: warning: class variable access from toplevel
=> #<#<Class:0x00000002a8b838>:0x00000002a85528>

------=_Part_29_31608691.1324405273622-- ------=_Part_28_30798602.1324405273618--