Ruby Assignments in Conditional Expressions
21-May-2020 1484
For around two and a half years, I had been working in a Python 2.x environment at my old job . Since switching companies, Ruby and Rails has replaced Python and Flask. At first glance, the languages don’t seem super different, but there are definitely common Ruby idioms that I needed to learn.While adding a new feature, I came across code that looked like this:.
Ruby Assignments in Conditional Expressions #ruby #rubydeveloper #rubyonrails #Assignments #Conditional #Expressions https://rubyonrails.ba/link/ruby-assignments-in-conditional-expressions