Tutorials


Fun with each_with_object and other Enumerator adventures
A short preface: I am writing in Ruby since 2004. For last 5 years I am also participating in language development, documenting new and old features, proposing some (several got accepted) and diving deep into weirdest mysteries of the language. So...





Active Merchant is a simple payment abstraction library extracted from Shopify.
Active Merchant is an extraction from the ecommerce system Shopify. Shopify's requirements for a simple and unified API to access dozens of different payment gateways with very different internal APIs was the chief principle in designing the libra...


Exploring Linux File Locking Mechanisms in Ruby | λ Lambda Papers
An exploration of File Locking mechanisms and their pitfalls on Linux in Ruby.On a recent automation spree I produced a couple of hundred lines of ruby that needed persistence. The built-in PStore is a natural choice for a project that size. I’ve ...

How to Make Colors With Ruby and Bitwise Operations
Leverage softPwn on the Raspberry Pi to control a mutli-colored LED with Ruby hexadecimal primitives, and some bitwise operations.The RGB LED I'm working with has four pins. Three of these pins take input that control the brightness level for (R)...