Class: Blueprints::Blueprints
- Inherits:
-
Object
- Object
- Blueprints::Blueprints
- Includes:
- ShipSchematics
- Defined in:
- lib/uss-enterprise/blueprint.rb
Direct Known Subclasses
OrbitalShipBlueprints, SeaShipBlueprints, StarShipBlueprints
Instance Method Summary collapse
- #gimme ⇒ Object
-
#initialize ⇒ Blueprints
constructor
A new instance of Blueprints.
Constructor Details
#initialize ⇒ Blueprints
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
#gimme ⇒ Object
26 27 28 |
# File 'lib/uss-enterprise/blueprint.rb', line 26 def gimme @blueprints end |