KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
The following line is working fine in ruby 1.8.7 and not in 1.8.6. What alternative I can use in 1.8.6 x = [3,4,5,6,7,78,4,3,2,5,5,3] x.count(3) => 3 Since count is not a method in Array in version 1.8.6, I am getting this error. Is there a similar method in this version?
Tags (comma-separated)
Save Edits
Cancel