1
0
mirror of https://github.com/danbee/inny synced 2025-03-04 08:59:10 +00:00
inny/lib/inny.rb
2023-12-22 15:04:45 -06:00

16 lines
256 B
Ruby

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