Alright, so I wanted to mess around with Rugby 8. Here’s how it went down.
First, I grabbed the gem. I just added gem 'rugby'
to my Gemfile, you know, the usual. Then I ran bundle install
. Boom, ready to go.
Gettin’ Started
Next, I created a new Ruby file, let’s call it rugby_*
. Inside, I started by requiring the gem:
require 'rugby'
Pretty straightforward, right?.
Tryin’ Stuff Out
I wanted to see this thing in action. So, I whipped up a simple example. I decided to just print a basic message to the console, with a solid border. You can get all fancy, but this was a warm up.
I added this:
* "Hello from Rugby!"
And then I ran the file : ruby rugby_*
.
Observations
- It worked! I got a nice little box with my message. Clean and simple.
- I noticed it added colors, which I can change with
:color
. - I also played around with the border styles and colors using the other options.
Wrapping Up
So, that was my quick dive into Rugby 8. I successfully installed it, wrote a very basic example, and tested that it worked. It’s a pretty neat tool for making console output look a bit nicer. It seems simple, but it can make things easier to read, especially for scripts.