Sha256: c568b92dfd98fd45f69852487c1cc562a6a7477f264e02e7f330c545469799a3
Contents?: true
Size: 402 Bytes
Versions: 1
Compression:
Stored size: 402 Bytes
Contents
# frozen_string_literal: true require 'hike' require 'pathname' module Opal class HikePathFinder < Hike::Trail def initialize(paths = Opal.paths) super() append_paths(*paths) append_extensions '.js', '.js.rb', '.rb', '.opalerb' end def find path pathname = Pathname(path) return path if pathname.absolute? and pathname.exist? super end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
opal-0.11.0.rc1 | lib/opal/hike_path_finder.rb |