Sha256: c0e8cf5d9f8db1e88059e44d415aed16b6feddc30d1f45dc4a13bac5d80c5e17

Contents?: true

Size: 592 Bytes

Versions: 1

Compression:

Stored size: 592 Bytes

Contents

module Bootcamp
  
  # A recruit is only given orders by a drill instructor
  class Recruit
    
    #orders are the options given to a recruit
    def initialize(orders = {})
      @unit = orders[:unit] || 'core'
    end
    
    #The unit is the framework the recruit belongs to
    #if the recruit belongs to 'core', then no external library is needed
    # e.g. jquery, mootools, etc...
    def unit
      @unit
    end
    
    #Get the library based off the unit
    def recon_library
      puts "Getting library #{unit}"
      
      puts "Mission complete!"
    end
    
  end
  
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
bootcamp-0.1.0 lib/bootcamp/recruit.rb