Rake Routes
by Stephen Ball
From awk to a Dockerized Ruby Script
Aug 8, 2021
command line & ruby & docker
For a programming project I wanted to easily get a list of the printable ASCII characters such that I could easily loop through them and do some
Connecting Objects with Observable
Dec 5, 2018
ruby
Today let’s dive a bit into the Observable module from Ruby’s standard library. Let’s say we’re launching a rocket. Fortunately we have a very high
Let’s Use Hwacha to Scan URLs
Dec 18, 2013
ruby
I’ve written a gem, Hwacha, as a wrapper around Typhoeus to allow for quick and easy response checking for multiple URLs. Let’s go through some
Customize Your IRB
Mar 19, 2013
ruby
You probably spend a lot of time in IRB (or the Rails console) but have you taken the time to customize it? Today we’ll take a look at the things
Gem Spotlight: interactive_editor
Jan 4, 2013
ruby
Today we’ll take a quick look at one of my favorite gems: interactive_editor. Have you ever been in a REPL session (rails console, irb, pry, etc.)
How to use bundler instead of rvm gemsets
Mar 19, 2012
ruby
Listening to the latest Ruby Rogues I was intrigued to hear André Arko describe how using bundler can completely obviate using rvm gemsets. He said
How to write (and test) a gem to serve static files on the Rails asset pipeline
Mar 15, 2012
ruby & rails
Today we write (and test!) a gem that simply adds new static assets to a Rails project. I puzzled out most of this while working on my
A Taste of Metaprogramming
Mar 1, 2012
ruby
Today we take a small taste from the wide ranging metaprogramming abilities that Ruby gives us. We’ll be looking at define_method and method_missing
Fun with Rock, Paper, Scissors
Feb 28, 2012
ruby
James Edward Gray II’s Ruby Quiz #16 was to implement Rock, Paper, Scissors playing classes to compete on a playing field managed by a given Game
Let’s Write a Gem: Part 2
Feb 23, 2012
ruby
Continued from Let’s Write a Gem, Part 1 In this post we’ll finish our tutorial gem. Along the way I’ll point out some confusing pitfalls you can
Let’s Write a Gem: Part 1
Feb 21, 2012
ruby
Gems. Gotta love em. If you’re a Ruby developer then you already know that gems are simply fundamental to Ruby programming. Let’s write one. Right
Parsing Dates and Times from Strings using strptime
Feb 9, 2012
ruby
Howdy ya’ll. As much as we’d prefer to just deal with nicely formatted data; the real world sometimes requires that we parse weird datetime strings
Anonymous blocks as function arguments in Ruby
Feb 8, 2012
ruby
A quick tidbit that comes in handy when you want to write some idiomatic Ruby: how to write methods that accept optional blocks of code to execute.