You've declared initialized?
as an instance method but are calling it as if it were a class method. Here's an explanation of the difference between instance methods and class methods.
↧
Answer by Rachel Shallit for Ruby NoMethodError
↧