class EWorld::BaseWriter

Constants

CLASS
CLASS_LOWER
IMPORTS
PACKAGE

Public Class Methods

get_java_path_for(project_path, path) click to toggle source

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

# 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