Skip to content

Commit

Permalink
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lib/opal.rb
Original file line number Diff line number Diff line change
@@ -34,6 +34,10 @@ def self.append_path(path)
paths << path
end

def self.use_gem(gem_name)
Opal.append_path File.join(Gem::Specification.find_by_name(gem_name).gem_dir, 'lib')
end

# Private, don't add to these directly (use .append_path instead).
def self.paths
@paths ||= [core_dir, std_dir]

0 comments on commit 60d3944

Please sign in to comment.