Solved

Ruby OO Design - General Knowledge

Posted on 2012-04-11
3
296 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

Enabling OSINT in Activity Based Intelligence

Activity based intelligence (ABI) requires access to all available sources of data. Recorded Future allows analysts to observe structured data on the open, deep, and dark web.

Join & Write a Comment

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…
Illustrator's Shape Builder tool will let you combine shapes visually and interactively. This video shows the Mac version, but the tool works the same way in Windows. To follow along with this video, you can draw your own shapes or download the file…
Access reports are powerful and flexible. Learn how to create a query and then a grouped report using the wizard. Modify the report design after the wizard is done to make it look better. There will be another video to explain how to put the final p…

747 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

10 Experts available now in Live!

Get 1:1 Help Now