Logo
Learn Ruby In Orbit
Menu
Public Planet Blueprints
What's New
Log In
Sign Up
Planet Blueprint #10
Andrew's Code
module AquaticFlora def dominant_plants "Seaweeds" end end module AquaticFauna def dominant_animals "Fish" end end class AquaticPlanet include AquaticFlora include AquaticFauna attr_reader :planet_dominant_plants, :planet_dominant_animals def initialize @planet_dominant_plants = dominant_plants @planet_dominant_animals = dominant_animals end end
Generated Planet