class City
Attributes
hotels[RW]
name[RW]
Public Class Methods
clear_all()
click to toggle source
# File lib/hotels_in_iraq/city.rb, line 12 def self.clear_all @@all.clear end
new(name)
click to toggle source
# File lib/hotels_in_iraq/city.rb, line 5 def initialize(name) @name=name @hotels=[] @@all << self #puts "here City OBJ= #{@name}" end