Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR RUBY

ruby shorthand if

today == ChristmasEve ? (puts "Santa's On His Way!") : (puts "Snow")
Source by www.natashatherobot.com #
 
PREVIOUS NEXT
Tagged: #ruby #shorthand
ADD COMMENT
Topic
Name
9+5 =