Created
May 24, 2012 16:11
-
-
Save laribee/2782469 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # OK | |
| def dilettante | |
| content = [] | |
| other_extended_fields_element.div_elements(:class => 'text').each do |c| | |
| content << c.label.text | |
| end | |
| content | |
| end | |
| # BETTER! | |
| def pro | |
| other_extended_fields_element.div_elements(:class => 'text').collect { |c| c.label.text } | |
| end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment