R
robertj
hi,
is there a String#to_sym method anywhere in the
statndard lib? i couldnt find anything like that
but maybe i missed it.
its easy enough to write
class String
def to_sym
eval ":#{self}"
end
end
just want to check if its there already.
ciao robertj
is there a String#to_sym method anywhere in the
statndard lib? i couldnt find anything like that
but maybe i missed it.
its easy enough to write
class String
def to_sym
eval ":#{self}"
end
end
just want to check if its there already.
ciao robertj