Home What to use: Class or Module, in ROR
Reply: 0

What to use: Class or Module, in ROR

user6212 Published in September 20, 2018, 10:22 pm

I am new to ROR and trying to convert my PhP application to ROR application. There is one php file common.php which is included in almost all other files. Likewise common.php in turn uses RPCClient.php and User.php . Variables and methods are shared across php files. So, what should I use in ROR a class or a module as data is shared among various files.

share|improve this question
  • Possible duplicate of What is the difference between include and require in Ruby? – RiggsFolly May 9 at 16:53
  • 1
    This is not a duplicate of the nominated exemplar, although that question does have some relevance, since the solution to the OP's problem will use "require" and "include." – Wayne Conrad May 9 at 16:58

1 Answer 1

active oldest votes
up vote 4 down vote
You need to login account before you can post.

About| Privacy statement| Terms of Service| Advertising| Contact us| Help| Sitemap|
Processed in 0.303113 second(s) , Gzip On .

© 2016 Powered by mzan.com design MATCHINFO