Peter Hickman wrote in post #1090491:
> Well you could just place all the code between
>
> class Dungeon
>  .. and ...
> end
>
> into a file called dungeon.rb and create a new file called play.rb
>
> -- play.rb
> #!/usr/bin/env ruby
>
> require 'dungeon'
>
> my_dungeon = Dungeon.new("Fred Bloggs")
> my_dungeon.add_room(:largecave, "Large Cave", "a large cavernous cave",
> {


Thank You I got it!

-- 
Posted via http://www.ruby-forum.com/.