Sha256: e883c15ac7b7dbfb56d2b72c63e775fe72cccba6decd76106ac816d4abc0fd29

Contents?: true

Size: 256 Bytes

Versions: 3

Compression:

Stored size: 256 Bytes

Contents

module GhostInThePost
  module JSLoaders
    module FileSystemLoader
      extend self

      def load(url)
        path = URI(url).path
        file_path = "public#{path}"
        File.read(file_path) if File.exist?(file_path)
      end
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
ghost_in_the_post-0.1.4 lib/ghost_in_the_post/js_loaders/file_system_loader.rb
ghost_in_the_post-0.1.3 lib/ghost_in_the_post/js_loaders/file_system_loader.rb
ghost_in_the_post-0.1.2 lib/ghost_in_the_post/js_loaders/file_system_loader.rb