Sha256: 3aa677177331a03d998169c361ad51c88e1a583719a602817842ce92fd64eb13

Contents?: true

Size: 342 Bytes

Versions: 3

Compression:

Stored size: 342 Bytes

Contents

class City
  attr_accessor :name , :hotels
  @@all=[]
#-----------------------------------------------------------------
  def initialize(name)

    @name=name
    @hotels=[]
    @@all << self
    #puts "here City OBJ= #{@name}"
  end
def self.clear_all
  @@all.clear
end
#-----------------------------------------------------------------
end

Version data entries

3 entries across 3 versions & 2 rubygems

Version Path
hotels_in_iraq-0.1.1 lib/hotels_in_iraq/city.rb
iraq_hotels-0.1.0 lib/hotels_in_iraq/city.rb
hotels_in_iraq-0.1.0 lib/hotels_in_iraq/city.rb