Search snippets
Browse Code Answers
FAQ
Usage docs
Log In
Sign Up
Home
Ruby
ruby shorthand if
Selio
Programming language:
Ruby
2021-02-01 02:02:47
0
Q:
ruby shorthand if
user28796
Code:
Ruby
2021-02-01 02:06:39
today == ChristmasEve ? (puts "Santa's On His Way!") : (puts "Snow")
0
Related
ruby silce!
ruby reorder keys in hash
ruby begin rescue ensure
ruby unless
what is exclamation mark in ruby
Ruby difference between for and .each
ruby is int
ruby array has element
ruby if statement
ruby ternary operator
ruby each do method
ruby if statement one line
if else ruby
ruby else if
ruby check if true
ruby dig
ruby each array
New to Communities?
Join the community