I’m trying to map features that I used from .net with Ruby
How can I create c# .net generic list like in Ruby?
public class ClientList : List<Client> { }
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Ruby is a very dynamic language. It does not have strong types like in C#, and therefore, it does not have (or need generics).
You can create a List in Ruby like this:
http://langref.org/ruby/lists