Sha256: 9dd61f61d1d385030d7ff4da2bd253b9a2e10923a548b3d1f69f07d605c3f123

Contents?: true

Size: 536 Bytes

Versions: 4

Compression:

Stored size: 536 Bytes

Contents

# frozen_string_literal: true

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

      def core_assets(asset_type, side)
        "#{root.rocket_root}/app/assets/#{asset_type}/keppler_frontend/#{side}"
      end

      def front_assets(file)
        "/assets/keppler_frontend/app/#{file}"
      end

      def views_assets(file)
        "/assets/html/keppler_frontend/views/#{file}"
      end

      private

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

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
keppler-2.1.22 installer/core/rockets/keppler_frontend/app/services/keppler_frontend/urls/assets.rb
keppler-2.1.21 installer/core/rockets/keppler_frontend/app/services/keppler_frontend/urls/assets.rb
keppler-2.1.20 installer/core/rockets/keppler_frontend/app/services/keppler_frontend/urls/assets.rb
keppler-2.1.19 installer/core/rockets/keppler_frontend/app/services/keppler_frontend/urls/assets.rb