Ruby test

Ruby code posted
created at 07 Oct 00:59

Edit | Back
1
2
3
4
5
6
7
8
9
10
11
12
13
# ./Rakefile
  task :turn_off_alarm do
    puts "Turned off alarm"
  end
 
  task :make_coffee do
    cups = ENV["COFFEE_CUPS"] || 2
    puts "Made #{cups} cups of coffee."
  end
 
  task :ready_for_the_day => [:turn_off_alarm, :groom_myself, :make_coffee, :walk_dog] do
    puts "Ready for the day!"
  end
318 Bytes in 3 ms with coderay