M
Marcin Tyman
Hi,
I need to know how to "cast" ruby objects on another i.e.
arr = Array.new()
doc = REXML:
ocument.new(grListXML)
doc.elements.each("*/group") do |el|
temp = el.elements["id"].get_text
arr << temp
end
I want to convert temp variable to intager. Is is any simple way to do
it if REXML has no to_i methods?
Thanks for any help.
MT
I need to know how to "cast" ruby objects on another i.e.
arr = Array.new()
doc = REXML:
doc.elements.each("*/group") do |el|
temp = el.elements["id"].get_text
arr << temp
end
I want to convert temp variable to intager. Is is any simple way to do
it if REXML has no to_i methods?
Thanks for any help.
MT