1
0
mirror of https://github.com/danbee/inny synced 2025-03-04 08:59:10 +00:00
inny/lib/inny.rb
2015-09-24 11:58:47 +01:00

16 lines
256 B
Ruby

require "inny/version"
module Inny
def in?(object)
begin
object.include?(self)
rescue NoMethodError
raise ArgumentError.new("The parameter passed to #in? must respond to #include?")
end
end
end
class Object
include Inny
end