lib/IFMapper/Room.rb in ifmapper-1.0.6 vs lib/IFMapper/Room.rb in ifmapper-1.0.7
- old
+ new
@@ -148,6 +148,14 @@
end
def to_s
"\"#{@name}\""
end
+
+ def inspect
+ puts to_s
+ puts "Exits:"
+ @exits.each { |c|
+ puts "\t#{c}" if c != nil
+ }
+ end
end