Solved

Ruby OO Design - General Knowledge

Posted on 2012-04-11
3
304 Views
Last Modified: 2012-04-13
Hi,
First this is not an assignment. Just a general knowledge.

I have previously raised a question about Java OO Design. As I have been self learning Ruby on Rails. In Ruby programming, I cannot find any good book talking about OO design in Ruby programming. However, it seems to be a common question for Ruby OO Design.

I am wondering any Ruby Experts here can help me to understand what is OO Design in Ruby programming.. I can't find any abstract class or interface used in Ruby programming. I am very sure I am wrong and need you experts to help me understand.


Thank you in advance.
0
Comment
Question by:unistudent
  • 2
3 Comments
 
LVL 3

Accepted Solution

by:
Rameshwar Vyevhare earned 500 total points
ID: 37836814
0
 

Author Comment

by:unistudent
ID: 37836910
many thanks for the info. this is very useful even though i dont quite understand. I think this is part of my learning curve.

I dont see any concept like Java interface, abstraction and inheritance.. anywhere i can find the information regarding ruby interface, abstraction and inheritance....

Does Ruby support multiple inheeritance? I have read some book, some say it doesn't, but to support mulitple inheritance, it needs to use mixins ...

I learn ruby from Rails.. i should do it in a proper way.. i found Ruby is hard to understand. For example, I have no idea what data type of the model method return till i have looked at the code.. not like java.. correct me if i am wrong.
0
 
LVL 3

Expert Comment

by:Rameshwar Vyevhare
ID: 37841570
Ruby is purely object oriented, when you make call  to model for data then you will get data in the form of hash object. You can manipulate with object and can convert it to to_s(string), to_i(integer) and to_arr(array). Make some practice with small application using rails. and also go through some example on interactive ruby (console).

Here practice more important than reading, practice will increase your confidence.

Best Luck
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

I recently rediscovered rails when I needed a holiday project and decided to build a management dashboard for the company where I work.  With it being a project done in my free time, I could focus my time on learning the basics rather than trying to…
Article by: narshlob
If you've ever programmed in Ruby and have come across either a proc or a lambda, you might have been wondering what the difference is between the two and when you would use one over the other. This article will try to explain the difference between…
This tutorial gives a high-level tour of the interface of Marketo (a marketing automation tool to help businesses track and engage prospective customers and drive them to purchase). You will see the main areas including Marketing Activities, Design …
Both in life and business – not all partnerships are created equal. As the demand for cloud services increases, so do the number of self-proclaimed cloud partners. Asking the right questions up front in the partnership, will enable both parties …

867 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

16 Experts available now in Live!

Get 1:1 Help Now