Eagerly Initialized Attribute

Lazily initialization is causing more confusion than benefit

Initialize the attribute when you instantiate the object

class Employee
  def emails
    @emails ||= []
  end
end 
  

image/svg+xml

class Employee
  def initialize
    @emails = []
  end
end 

inverse of Lazily Initialized Attribute