class BattleBoats::Fleet
Attributes
ships[R]
Public Class Methods
new()
click to toggle source
# File lib/battle_boats/fleet.rb, line 7 def initialize @ships = [ BattleBoats::Ship.new(name: "Carrier", length: 5, symbol: "C"), BattleBoats::Ship.new(name: "Battleship", length: 4, symbol: "B"), BattleBoats::Ship.new(name: "Cruiser", length: 3, symbol: "R"), BattleBoats::Ship.new(name: "Submarine", length: 3, symbol: "S"), BattleBoats::Ship.new(name: "Destroyer", length: 2, symbol: "D"), ] end