- 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 emptynumbers.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
- the
- 00hello – 04pig_latin
- Random
- I was able to change my default tab size by file type in Sublime Text 2
- Go to: Preferences -> Settings – More -> Syntax Specific – User
- insert and save options
- you can open the current directory in the finder from the terminal with
open .
- I was able to change my default tab size by file type in Sublime Text 2
Advertisements