Class: RTanque::Arena
- Inherits:
-
Struct
- Object
- Struct
- RTanque::Arena
- Defined in:
- lib/rtanque/arena.rb
Instance Attribute Summary collapse
-
#height ⇒ Object
Returns the value of attribute height.
-
#width ⇒ Object
Returns the value of attribute width.
Instance Method Summary collapse
-
#initialize(*args, &block) ⇒ Arena
constructor
A new instance of Arena.
Constructor Details
#initialize(*args, &block) ⇒ Arena
Returns a new instance of Arena.
3 4 5 6 |
# File 'lib/rtanque/arena.rb', line 3 def initialize(*args, &block) super self.freeze end |
Instance Attribute Details
#height ⇒ Object
Returns the value of attribute height
2 3 4 |
# File 'lib/rtanque/arena.rb', line 2 def height @height end |
#width ⇒ Object
Returns the value of attribute width
2 3 4 |
# File 'lib/rtanque/arena.rb', line 2 def width @width end |