Skip to content

Commit

Permalink
fixed examples
Browse files Browse the repository at this point in the history
  • Loading branch information
Yutaka HARA committed Jul 3, 2011
1 parent a4900ef commit 7f2dc66
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 12 deletions.
2 changes: 1 addition & 1 deletion examples/13_friday.rb
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,4 @@
puts (Date.new(2011)..Date.new(9999))
.lazy
.select{|d| d.day == 13 and d.friday?}
.take(10)
.first(10)
4 changes: 1 addition & 3 deletions examples/fizzbuzz.rb
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,4 @@
.map{|n| if n % 15 == 0 then "FizzBuzz" else n end}
.map{|n| if n % 5 == 0 then "Buzz" else n end}
.map{|n| if n % 3 == 0 then "Fizz" else n end}
.take(20)


.first(100)
8 changes: 0 additions & 8 deletions examples/loremipsum.rb

This file was deleted.

0 comments on commit 7f2dc66

Please sign in to comment.