Module: Inny
- Included in:
- Object
- Defined in:
- lib/inny.rb,
lib/inny/version.rb
Constant Summary collapse
- VERSION =
"2.0.1"
Instance Method Summary collapse
Instance Method Details
#in?(object) ⇒ Boolean
4 5 6 7 8 9 10 |
# File 'lib/inny.rb', line 4 def in?(object) begin object.include?(self) rescue NoMethodError raise ArgumentError.new("The parameter passed to #in? must respond to #include?") end end |