Solved

Ruby OO Design - General Knowledge

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

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Rails 3.2 directory to upload files 3 786
Java - confuse using abstract class and class 13 506
Disable one update action of puppet agent -test 6 255
Ruby error "undefined method" 6 84
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…
Recently I spent hours debugging an issue in a Rails project where ActiveRecord was causing MySQL errors trying to create a User object of a class at the top level of a Single Table Inheritance model structure.  It turns out `.create` behaves differ…
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 …
Migrating to Microsoft Office 365 is becoming increasingly popular for organizations both large and small. If you have made the leap to Microsoft’s cloud platform, you know that you will need to create a corporate email signature for your Office 365…

816 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

12 Experts available now in Live!

Get 1:1 Help Now