Project

whimsy_str

0.0
No release in over 3 years
Low commit activity in last 3 years
A collection of whimsical methods for modifying strings.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
2026
 Dependencies
 Project Readme

whimsy_str

Gem Version

A simple rubygem to inject some whimsicality into your strings.

Motivations

I've had a couple of command-line utilities for these floating around on my personal machines for a while, and figured it would be great to put them out there in an easily-consumable format.

Installation

gem install whimsy_str

Usage

whimsy_str provides some extensions to the built-in String class, allowing easy transformations into popular meme formats.

Code Sample

require 'whimsy_str'
puts "Sounds like a lot of \n#{'hooplah'.wavify}\nover one small krabby patty"
puts "Nobody wants to work anymore".spongify

Console output:

Sounds like a lot of
h o o p l a h
over one small krabby patty
NOBOdY WAnTS To wORK AnYmOrE

Executables

whimsy_str provides command-line executables for these functionalities, as well. For example:

$ wavy incredible
i n c r e d i b l e
$ sponge 'wow this is so cool'
wow thiS is sO coOl
$

Development

Requirements

  • Ruby >= 2.7