So I have an array (defined right away):
some_array = ["a", "b", "c"]
I am later declaring this class:
class Report
def initialize(name)
@name=name
end
end
I want to include the array into this class, so I can use the data. Can I import it like any other initialized data? So basically I have an array I want to use in a class.. every way I do it I'm getting undefined variables.
initializemethod and passing the array to that?