Class: Object
- Inherits:
- BasicObject
- Defined in:
- lib/inn.rb
Overview
is an obj ‘in?’ another obj? #
Instance Method Summary collapse
Instance Method Details
#in?(obj) ⇒ Boolean
6 7 8 9 |
# File 'lib/inn.rb', line 6 def in?(obj) raise NotImplementedError unless obj.respond_to? :include? obj.include?(self) end |