Syntax notes on Ruby ecosystem

Syntax notes on Ruby ecosystem Some notes, on syntax in the Ruby ecosystem, namely Ruby itself, ERB and Rails. Ruby Comments # single line comment =begin Multi Line Comment The =begin and =end must be at the beginning of the line =end # or just # do multiline # like this Too bad multiline comments are a bit clunky ERB ERB (Embedded Ruby) is a templating system for embedding Ruby code within a text document like HTML. ...

July 12, 2024 · 1 min · 197 words · Ryan Dorward