S
Sean DeNigris
Does anyone have experience with this?
Specifically, I want to use a blueprint for a class that takes an
argument to new, but calling make (even with an argument) causes an
error.
Example:
class MyClass
def initialize(str)
...
end
end
MyClass.make
#or
MyClass.make('a string')
#or
MyClass.make('new' => 'a string')
Output:
wrong number of arguments (0 for 1)
Thanks.
Sean
Specifically, I want to use a blueprint for a class that takes an
argument to new, but calling make (even with an argument) causes an
error.
Example:
class MyClass
def initialize(str)
...
end
end
MyClass.make
#or
MyClass.make('a string')
#or
MyClass.make('new' => 'a string')
Output:
wrong number of arguments (0 for 1)
Thanks.
Sean