?
Solved

Ruby OO Design - General Knowledge

Posted on 2012-04-11
3
Medium Priority
?
345 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 1500 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

Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

Question has a verified solution.

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

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…
In Ruby, Call or invoke a API DLL library is easily via Win32API class, win32-api gem or other gems. For general DLL API call, there are quite a few references, some good tips list below: http://www.rubytips.org/2008/05/13/accessing-windows-api-fro…
Are you ready to place your question in front of subject-matter experts for more timely responses? With the release of Priority Question, Premium Members, Team Accounts and Qualified Experts can now identify the emergent level of their issue, signal…
Is your data getting by on basic protection measures? In today’s climate of debilitating malware and ransomware—like WannaCry—that may not be enough. You need to establish more than basics, like a recovery plan that protects both data and endpoints.…
Suggested Courses
Course of the Month14 days, 15 hours left to enroll

839 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