Class: Blueprints::Blueprints

Inherits:
Object
  • Object
show all
Includes:
ShipSchematics
Defined in:
lib/uss-enterprise/blueprint.rb

Instance Method Summary collapse

Constructor Details

#initializeBlueprints

Returns a new instance of Blueprints.



8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
# File 'lib/uss-enterprise/blueprint.rb', line 8

def initialize
  @schematics = Schematics.new
  @blueprints = Hash.new
  # Haven't decided if the parent object should have *all* the schematics, or none...
  # @blueprints = {
  #   'Sloop'                 => @schematics.sloop,
  #   'Carrier'               => @schematics.carrier,
  #   'Spaceshuttle'          => @schematics.spaceshuttle,
  #   'NX'                    => @schematics.ss_nx,
  #   'Constitution'          => @schematics.ss_constitution,
  #   'Constitution - refit'  => @schematics.ss_const_refit,
  #   'Excelsior'             => @schematics.ss_excelsior,
  #   'Ambassador'            => @schematics.ss_ambassador,
  #   'Galaxy'                => @schematics.ss_galaxy,
  #   'Sovereign'             => @schematics.ss_sovereign
  # }
end

Instance Method Details

#gimmeObject



26
27
28
# File 'lib/uss-enterprise/blueprint.rb', line 26

def gimme
  @blueprints
end