[chef] Re: Re: Re: Re: Re: Re: Re: 0.7.14 -> 0.7.16... issues


Chronological Thread 
  • From: (msf)
  • To:
  • Subject: [chef] Re: Re: Re: Re: Re: Re: Re: 0.7.14 -> 0.7.16... issues
  • Date: Wed, 10 Feb 2010 11:50:48 +0900

On Tue, Feb 09, 2010 at 01:32:05PM -0800, Alex Soto wrote:
> I believe a dash is a valid character for an identifier/symbol in ruby

it is but you need to wrap it in quotes. 

>> h = {}
=> {}
>> h[:snmp-master] = "foo"
NoMethodError: undefined method `-' for :snmp:Symbol
from (irb):4
>> h[':snmp-master'] = "foo"
=> "foo"

-- 
Mathieu Sauve-Frankel



Archive powered by MHonArc 2.6.16.

§