/ Published in: Ruby
Expand |
Embed | Plain Text
# Used to alternate row colors in a table def alt( s = '', s2 = '2' ) @alt_state = true if @alt_state.nil? @alt_state = !@alt_state @alt_state ? s2 : s end
You need to login to post a comment.
