Ruby is an interpreted object oriented language, as well as having characteristics similar to functional languages.  It's also known as a duck-typing language.  From wikipedia:

In computer programming with object-oriented programming languages, duck typing is a style of dynamic typing in which an object's methods and properties determine the valid semantics, rather than its inheritance from a particular class or implementation of a specific interface. The name of the concept refers to the duck test, attributed to James Whitcomb Riley (see history below), which may be phrased as follows:

When I see a bird that walks like a duck and swims like a duck and quacks like a duck, I call that bird a duck.

In this article, I'm going to compare and contrast Ruby class definitions with C#.  There are already numerous articles on the subject, for example Brad Cunningham's blog post Ruby for the C# developer - The Basics.  What I'm endeavoring to accomplish here is a much more comprehensive discussion than one normally encounters in shorter blog entries.  To accomplish this, I've drawn from a variety of sources which I provide in the References section at the end of the article.  Throughout this article I also try to adhere to the correct naming conventions for C# and Ruby.  In Ruby, classes (which are considered constants) begin with a capital letter.  Everything else is lower case, and word groups for methods and attributes are separated by underscores, for example "MyClass" and "my_method".

✔ Read More...

I guess you came to this post by searching similar kind of issues in any of the search engine and hope that this resolved your problem. If you find this tips useful, just drop a line below and share the link to others and who knows they might find it useful too.

Stay tuned to my blogtwitter or facebook to read more articles, tutorials, news, tips & tricks on various technology fields. Also Subscribe to our Newsletter with your Email ID to keep you updated on latest posts. We will send newsletter to your registered email address. We will not share your email address to anybody as we respect privacy.


This article is related to
C#,.NET,Architect,Intermediate,VS2010,.Net,Articles,Computer Tutorials,Ruby,Ruby Classes,C# and Ruby Classes