From: Andrew Knott Date: 2006-07-29T16:23:19+09:00 Subject: Re: Using a '-' in a Key name in a Hash In ActionWebService::Structs you define members using member :name, :string in my case the member needed to be member :"remote-ip", :string Which ofcourse doesn't work, the syntax error comes as follows (line 53 in struct.rb) SyntaxError ((eval):1:in `member': compile error (eval):1: parse error, unexpected '-', expecting '\n' or ';' def remote-ip; @remote-ip; end ^ (eval):1: parse error, unexpected kEND, expecting $): /usr/local/lib/ruby/gems/1.8/gems/actionwebservice-1.1.4/lib/action_web_service/struct.rb:53:in `member' /app/models/msisdn_call.rb:4 Matt Todd wrote: > @Daniel: That's very cool. So then the change for getting Andrew > Knott's stuff working could be minimal! > > So, again, what's the context of the call? From what library? > ActiveResource or something else? > > M.T. -- Posted via http://www.ruby-forum.com/.