Class: Array
- Inherits:
-
Object
- Object
- Array
- Defined in:
- lib/prime_do.rb
Instance Method Summary collapse
Instance Method Details
#prime ⇒ Object
2 3 4 5 6 |
# File 'lib/prime_do.rb', line 2 def prime puts self.class puts 'this is the element from the array' self.select{|x| pr(x)} end |