Class: Array
- Inherits:
-
Object
- Object
- Array
- Defined in:
- lib/classes.rb
Overview
Small hack to the Array class to allow for easier type checking
Instance Method Summary collapse
Instance Method Details
#contains(value) ⇒ Object
71 72 73 |
# File 'lib/classes.rb', line 71 def contains(value) self.any? {|array_value| array_value == value } end |