Advertisement
saasbook

goodcomments.rb

Aug 15th, 2013
148
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Ruby 0.26 KB | None | 0 0
  1. # Good Comment:
  2. # Scan the array to see if the symbol exists
  3.  
  4. # Much better than:
  5. # Loop through every array index, get the
  6. # third value of the list in the content to
  7. # determine if it has the symbol we are looking
  8. # for. Set the result to the symbol if we
  9. # find it.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement