4
votes
1answer
97 views

Merging with different modules

We have an action merge for two projects. In the projects we have different modules like Feed, Files, Post etc.... ...
2
votes
1answer
55 views

Creating an .rtf file with cards from a list of people

I have made 2 scripts in Ruby. The first program creates an .rtf file with cards (file with colored table with persons) from a list of people in text file. The second program does the same, but in ...
0
votes
1answer
40 views

Managing several payment means in my Rails 3.2 app

I'm trying to manage several means of payment in my Rails 3.2 application. Let's say I have 2 means : Credit Cards & Bank Transfers (BIC), working with 2 different payment providers. Those means ...
5
votes
1answer
106 views

How to refactor many small but similar classes in Ruby?

I have classes like these: ...
4
votes
1answer
149 views

Loading 'Plugins' in Ruby

I have written a plugin loader in Ruby, and I would like to know if it uses the best technique to handle classes, or if anyone has any recommendations on how to improve my code. I have written a ...
3
votes
3answers
1k views

Communication between two classes in ruby

I cannot understand how I can make two classes work together by passing variables between them. During the last 5 days, I learned the basics of inheritance, singleton methods and eval methods. I even ...
2
votes
2answers
258 views

Ruby - class definition for connecting to external API

I've defined a Client class to connect to an external API. The Client class will return XML responses for various resources. Here's what it looks like now: ...
2
votes
1answer
159 views

How would you ruby-fy this non-AR model class for Ruby on Rails app?

This is a class from my rails application. It is used as non-database model in my RoR application and uses syntax similar to AR design pattern. I wonder is there a way to make this look more like Ruby ...