Created
September 20, 2014 01:26
-
-
Save dysbulic/d53c01187da7e051edda to your computer and use it in GitHub Desktop.
Theoretical mechanism for selecting values
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
- { yes: :✔, no: :– }.try( product.sold_by_amazon? ? :first : :last ) do |sold?, text| | |
%td.sba{ class: sold? }= text |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Works