‽‽‽‽‽‽‽‽‽‽‽‽‽‽‽‽‽‽
Did the method end with ?
or !
‽ Interrobang gives you the best of both worlds‽
require "interrobang"
class Foo
def bar!
"something amaaaaazing!"
end
def baz?
false
end
end
Interrobang.only(Foo)
foo = Foo.new
foo.bar! # "something amaaaaazing!"
foo.bar‽ # "something amaaaaazing!"
foo.baz? # false
foo.baz‽ # false
Feeling really forgetful‽ No problem:
Interrobang.everything
%w[foo bar baz].include?("baz") # true
%w[foo bar baz].include‽("baz") # true
"sshaw!".chop! # "sshaw"
"sshaw!".chop‽ # "sshaw"
- AngryRaise -
raise
exceptions, with emotion and intensity - class2 - DSL for creating class hierarchies
- require3 -
Kernel#require
something and make it accessible via a different namespace - YYMMDD - Tiny DSL for idiomatic date parsing and formatting
Skye Shaw [skye.shaw AT gmail]
Released under the MIT License: http://www.opensource.org/licenses/MIT