No commit activity in last 3 years
No release in over 3 years
Adds expletive infixes to ruby method names. Abso-freakin'-lutely!
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

~> 1.6
>= 0
>= 0
 Project Readme

Expletive Infixation

Adds expletive infixes to ruby method names. Abso-freakin'-lutely!

Installation

Add this line to your application's Gemfile:

gem 'expletive_infixation'

And then execute:

$ bundle

Or install it yourself as:

$ gem install expletive_infixation

Usage

Don't.

Standard usage.

require 'expletive_infixation'

a = [1,2,3,4,5]

a.sort_freakin_by! {|n| -n }

# => [5,4,3,2,1]

Custom expletive.

require 'expletive_infixation'

ExpletiveInfixation.expletive_infix = 'gosh_darn'

a = [1,2,3,4,5]

a.each_with_gosh_darn_index do |n, i|
 # ...
end

Tests

$ ruby test/test_freakin_case.rb
Yep, SeriousThing.is_freakin_true?
Yep, SeriousThing.new.is_freakin_true?
Yep, SeriousThing.freakin_truthy?
Yep, SeriousThing.is_freakin_false? went 'undefined method `is_freakin_false?' for SeriousThing:Class'
Yep, SeriousThing.is_false? went 'undefined method `is_false?' for SeriousThing:Class'
Yep, SeriousThing.respond_to? :is_freakin_true?
Yep, SeriousThing.respond_to? :freakin_truthy?
Yep, SeriousThing.is_gosh_darn_true?
Yep, SeriousThing.is_freakin_true? went 'undefined method `is_freakin_true?' for SeriousThing:Class'

Contributing

  1. Fork it ( https://github.com/horribleideas/expletive_infixation/fork )
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create a new Pull Request