franzejr / best-ruby

Ruby Tricks, Idiomatic Ruby, Refactoring and Best Practices
http://franzejr.github.io/best-ruby/
2.39k stars 219 forks source link

Update conditional_assignment.md #79

Closed tdkn closed 1 year ago

tdkn commented 2 years ago

The if is actually an expression in the Ruby language. So I would like to correct the statement.

ref: https://docs.ruby-lang.org/en/master/syntax/control_expressions_rdoc.html

tdkn commented 1 year ago

Hi @franzejr,

Could you review my open pull request when you have a moment? I'd really appreciate your ruby best practice.

Thanks

franzejr commented 1 year ago

Thank you!