Class: Array
- Inherits:
-
Object
- Object
- Array
- Defined in:
- lib/array.rb
Instance Method Summary collapse
Instance Method Details
#first?(el) ⇒ Boolean
7 8 9 |
# File 'lib/array.rb', line 7 def first? el first == el end |
#last?(el) ⇒ Boolean
3 4 5 |
# File 'lib/array.rb', line 3 def last? el last == el end |