Class: EWorld::BaseWriter

Inherits:
Object
  • Object
show all
Defined in:
lib/writers/base_writer.rb

Constant Summary collapse

PACKAGE =
'{{--PACKAGE--}}'
CLASS =
'{{--CLASS--}}'
CLASS_LOWER =
'{{--CLASS-LOWER--}}'
IMPORTS =
'{{--IMPORTS--}}'

Class Method Summary collapse

Class Method Details

.get_java_path_for(project_path, path) ⇒ Object

Generic method to get root path for Controllers/Services in Java.

Returns:

  • string.



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