Class: Tile

Inherits:
Object
  • Object
show all
Defined in:
lib/ruby-ai/tile.rb

Overview

access methods via brackets

Direct Known Subclasses

Empty, Goal, Player, Wall

Instance Method Summary collapse

Instance Method Details

#[](key) ⇒ Object



4
5
6
# File 'lib/ruby-ai/tile.rb', line 4

def [](key)
  send(key)
end

#inspectObject



8
9
10
# File 'lib/ruby-ai/tile.rb', line 8

def inspect
  "#{self.class}, @x=#{x}, @y=#{y}"
end