Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

each -> foreach

  • Loading branch information...
commit e5f05aeca6fbfa39dfdfe08614dfcbf66aae2eb9 1 parent 8e4ff09
Gerardo Santana Gómez Garrido authored
Showing with 2 additions and 2 deletions.
  1. +2 −2 README
View
4 README
@@ -56,7 +56,7 @@ http://ruby-informix.rubyforge.org/doc
=== Traversing a table
- db.each('select * from stock') do |r|
+ db.foreach('select * from stock') do |r|
# do something with the record
end
@@ -76,7 +76,7 @@ http://ruby-informix.rubyforge.org/doc
=== Iterating over a table using a hash (shortcut)
- db.each_hash('select * from customers') do |cust|
+ db.foreach_hash('select * from customers') do |cust|
puts "#{cust['firstname']} #{cust['lastname']}"
end
Please sign in to comment.
Something went wrong with that request. Please try again.