mirror of
https://github.com/danbee/inny
synced 2025-03-04 08:59:10 +00:00
16 lines
256 B
Ruby
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
|