home.social

#textsection — Public Fediverse posts

Live and recent posts from across the Fediverse tagged #textsection, aggregated by home.social.

  1. 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.

    #Ruby #DATA #TextSection #File #Embedded

  2. 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.

    #Ruby #DATA #TextSection #File #Embedded

  3. 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.

    #Ruby #DATA #TextSection #File #Embedded