Did the method end with "?" or "!"‽ Interrobang gives you the best of both worlds‽
‽‽‽‽‽‽‽‽‽‽‽‽‽‽‽‽‽‽
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"
raise
exceptions, with emotion and intensityKernel#require
something and make it accessible via a different namespaceSkye Shaw [skye.shaw AT gmail]
Released under the MIT License: http://www.opensource.org/licenses/MIT