Ruby test

Ruby code posted
created at 07 Oct 01:01

Edit | Back
1
2
3
4
5
6
7
8
9
10
11
# ./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
284 Bytes in 1 ms with coderay