T-7 to HW Due

  • TestFirst Ruby
    • 00hello – 04pig_latin
      • the rake command doesn’t work with spaces in the directory of the spec to be run.
      • without a do, an example in a spec is considered as Pending
      • a splat argument is automatically treated as an array, and may have an inject method performed on it
      • empty? is a good way to check if an array is empty
      • numbers.inject(:*) numbers.inject(1.0) { |product,each| product *= each }
      • I finally figured out the tertiary thing: (true/false condition like 0.zero?) ? (do this if true) : (do this if false)
      • Look up information about break later
  • Random

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s