Hello, I have a newbie question! I want to do something like this:
puts Example.new([a,b,c])
and the result to be
=> a,b,c
I tried something like this:
class Example
attr_accessor :something
def initialize(something)
@something = something
puts @something
end
end
It works but not how I want it! Thank you!