Class: SpaceInvaders::Base

Inherits:
Object
  • Object
show all
Defined in:
lib/space_invaders/base.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(app) ⇒ Base

Returns a new instance of Base.



5
6
7
# File 'lib/space_invaders/base.rb', line 5

def initialize app
  @app = app
end

Instance Attribute Details

#appObject (readonly)

Returns the value of attribute app.



3
4
5
# File 'lib/space_invaders/base.rb', line 3

def app
  @app
end

Instance Method Details

#game_statusObject



9
10
11
# File 'lib/space_invaders/base.rb', line 9

def game_status
  app.game_status
end