Class: EWorld::BaseWriter
- Inherits:
-
Object
- Object
- EWorld::BaseWriter
- Defined in:
- lib/writers/base_writer.rb
Direct Known Subclasses
ApiDocsWriter, ControllerWriter, EntityWriter, JsDocsWriter, PermissionWriter, QueueWriter, RouteWriter, ServiceWriter
Constant Summary collapse
- PACKAGE =
'{{--PACKAGE--}}'
- CLASS =
'{{--CLASS--}}'
- CLASS_LOWER =
'{{--CLASS-LOWER--}}'
- IMPORTS =
'{{--IMPORTS--}}'
Class Method Summary collapse
-
.get_java_path_for(project_path, path) ⇒ Object
Generic method to get root path for Controllers/Services in Java.
Class Method Details
.get_java_path_for(project_path, path) ⇒ Object
Generic method to get root path for Controllers/Services in Java.
12 13 14 15 16 17 |
# File 'lib/writers/base_writer.rb', line 12 def self.get_java_path_for(project_path, path) controller_path = "#{project_path}/#{Blufin::Strings::remove_surrounding_slashes(path)}" controller_path_parent = controller_path.split('/') controller_path_parent.pop "/#{Blufin::Strings::remove_surrounding_slashes(controller_path_parent.join('/'))}" end |