Given the following class:
class Test attr_accessor :name end
When I create the object, I want to do the following:
t = Test
The code you're indicating is passing parameters into the initialize function. You will most definitely have to either use initialize, or use a more boring syntax:
initialize
test = Test.new test.name = 'Some test object'