Sha256: 23c63e875568f997535e647cb2659abfbc1d980965beda512091fcb14fd1c646

Contents?: true

Size: 865 Bytes

Versions: 18

Compression:

Stored size: 865 Bytes

Contents

# frozen_string_literal: true

module KepplerFrontend
  module Urls
    # Assets
    class Front
      def initialize; end

      def view(name)
        "#{folder('view')}/#{name}.html.erb"
      end

      def view_js(name)
        "#{folder('view')}/#{name}.js.erb"
      end

      def layout
        "#{folder('layout')}/application.html.erb"
      end

      def controller
        "#{root.rocket_root}/app/controllers/keppler_frontend/" \
                            'app/frontend_controller.rb'
      end

      private

      def folder(folder_type)
        if folder_type.eql?('view')
          "#{root.rocket_root}/app/views/keppler_frontend/app/frontend"
        else
          "#{root.rocket_root}/app/views/layouts/keppler_frontend/app/layouts"
        end
      end

      def root
        KepplerFrontend::Urls::Roots.new
      end
    end
  end
end

Version data entries

18 entries across 18 versions & 1 rubygems

Version Path
keppler-2.1.22 installer/core/rockets/keppler_frontend/app/services/keppler_frontend/urls/front.rb
keppler-2.1.21 installer/core/rockets/keppler_frontend/app/services/keppler_frontend/urls/front.rb
keppler-2.1.20 installer/core/rockets/keppler_frontend/app/services/keppler_frontend/urls/front.rb
keppler-2.1.19 installer/core/rockets/keppler_frontend/app/services/keppler_frontend/urls/front.rb
keppler-2.1.18 installer/core/rockets/keppler_frontend/app/services/keppler_frontend/urls/front.rb
keppler-2.1.17 installer/core/rockets/keppler_frontend/app/services/keppler_frontend/urls/front.rb
keppler-2.1.16 installer/core/rockets/keppler_frontend/app/services/keppler_frontend/urls/front.rb
keppler-2.1.15 installer/core/rockets/keppler_frontend/app/services/keppler_frontend/urls/front.rb
keppler-2.1.14 installer/core/rockets/keppler_frontend/app/services/keppler_frontend/urls/front.rb
keppler-2.1.13 installer/core/rockets/keppler_frontend/app/services/keppler_frontend/urls/front.rb
keppler-2.1.12 installer/core/rockets/keppler_frontend/app/services/keppler_frontend/urls/front.rb
keppler-2.1.11 installer/core/rockets/keppler_frontend/app/services/keppler_frontend/urls/front.rb
keppler-2.1.10 installer/core/rockets/keppler_frontend/app/services/keppler_frontend/urls/front.rb
keppler-2.1.9 installer/core/rockets/keppler_frontend/app/services/keppler_frontend/urls/front.rb
keppler-2.1.8 installer/core/rockets/keppler_frontend/app/services/keppler_frontend/urls/front.rb
keppler-2.1.7 installer/core/rockets/keppler_frontend/app/services/keppler_frontend/urls/front.rb
keppler-2.1.6 installer/core/rockets/keppler_frontend/app/services/keppler_frontend/urls/front.rb
keppler-2.1.5 installer/core/rockets/keppler_frontend/app/services/keppler_frontend/urls/front.rb