I'm learning Ruby but came across a very annoying thing: I can't use curly brackets in If else constructs! I left Python as I didn't feel comfortable with indenting the statements carefully.
Is this the same way in Ruby also? For example: Can I write something like this:
if token == "hello" {
puts "hello encountered"
# lots of lines here
}
Is there any way of using curly brackets to do this. I read about blocks also but not sure how can they be used in If Else stuff