pivotallabs.com
08 Apr '12, 6am
見てる: "... - IntelliJ Modules in Rubymine"
IntelliJ has a feature called modules : "a functional unit which you can compile, run, test and debug independently." A module in IntelliJ is a top-level view on a part of a codebase. IntelliJ is for Java, which is why I do not typically use it. I use Rubymine - no similar functionality exists here... but a way around that! It may have been true at some point that these kind of modules were not something that Rails offered, but they have been around for quite a while: Engines ! Engines are typically seen as a way to package a Rails app that can be reused and configured in the context of other Rails apps. However, many big Rails projects can benefit from engines and their ability to structure a large codebase into smaller, more independent parts. Namespacing within one Rails app can achieve a similar effect, but engines take it to the next level: all the code, including vie...
Full article:
http://pivotallabs.com/users/shagemann/blog/articles/2008...