#textsection — Public Fediverse posts
Live and recent posts from across the Fediverse tagged #textsection, aggregated by home.social.
-
If you code in Ruby, you can discover new features practically every day.
One of the coolest features I stumbled upon in the documentation just a few days ago (despite writing Ruby for over 10 years!) is that you can embed text data directly inside your source file.
All you need to do is place an `__END__` marker at the bottom of the file. Anything you write after that line can be read right out of the `DATA` object inside the same source file. -
If you code in Ruby, you can discover new features practically every day.
One of the coolest features I stumbled upon in the documentation just a few days ago (despite writing Ruby for over 10 years!) is that you can embed text data directly inside your source file.
All you need to do is place an `__END__` marker at the bottom of the file. Anything you write after that line can be read right out of the `DATA` object inside the same source file. -
If you code in Ruby, you can discover new features practically every day.
One of the coolest features I stumbled upon in the documentation just a few days ago (despite writing Ruby for over 10 years!) is that you can embed text data directly inside your source file.
All you need to do is place an `__END__` marker at the bottom of the file. Anything you write after that line can be read right out of the `DATA` object inside the same source file.