Permalink
Browse files

Handle string conversion to symbol consistently

Don't want to include the colon or we get :":sym"
  • Loading branch information...
tjkirch committed Mar 13, 2011
1 parent 8a9f9c1 commit 376e8dbd255aeb2a010b8ad1c868845bb7196851
Showing with 2 additions and 2 deletions.
  1. +1 −1 events/admin.rb
  2. +1 −1 lib/gary.rb
View
@@ -571,7 +571,7 @@ def aset(event, player, room)
when "false"
value = false
when /^:/
value = value.to_sym
value = value[1..-1].to_sym
when "nil"
value = nil
when /^[0-9]+$/
View
@@ -134,7 +134,7 @@ def find_all(attrib, match)
when /^\d+$/
match = match.to_i
when /^:/
match = match.to_sym
match = match[1..-1].to_sym
end
if attrib == "class" and (match.is_a? Class or match.is_a? Module)
@ghash.dup.each do |goid, obj|

0 comments on commit 376e8db

Please sign in to comment.