Class: Tile
- Inherits:
-
Object
- Object
- Tile
- Defined in:
- lib/ruby-ai/tile.rb
Overview
access methods via brackets
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 |
#inspect ⇒ Object
8 9 10 |
# File 'lib/ruby-ai/tile.rb', line 8 def inspect "#{self.class}, @x=#{x}, @y=#{y}" end |