Skip to content

Commit

Permalink
Updated examples file.
Browse files Browse the repository at this point in the history
  • Loading branch information
mynyml committed May 19, 2009
1 parent b7ea33a commit 395f74f
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions examples.rb
Original file line number Diff line number Diff line change
Expand Up @@ -18,3 +18,12 @@
#=> false
puts enum.every.empty?.any?
#=> true

enum = [{:name => 'Foo'}, {:name => 'Bar'}]
puts enum.every[:name].inspect
#=> ["Foo", "Bar"]

enum = [1,2,3]
puts (enum.every + 1).inspect
#puts enum.every.+(1).inspect
#=> [2, 3, 4]

0 comments on commit 395f74f

Please sign in to comment.