Advertisement
Guest User

Untitled

a guest
Aug 2nd, 2012
96
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.23 KB | None | 0 0
  1. @element_hint ||= [:id, :name, :class, :text].each do |attr|
  2. next if !respond_to?(attr)
  3.  
  4. end #<--- how do I assign the value here? to element hint from
  5. #<--- within the each block?
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement