In def self.number_of_instances what is the significance of the dot, "." in self.number


when do you use the dot, "." in self.number. How is this supposed to be use. Could you give an explanation?

class Person
  # Set your class variable to 0 on line 3
  @@people_count = 0
  def initialize(name)
    @name = name
    # Increment your class variable on line 8
    @@people_count += 1
  def self.number_of_instances
    # Return your class variable on line 13
    return @@people_count

matz ="Yukihiro")
dhh ="David")

puts "Number of Person instances: #{Person.number_of_instances}"