Sha256: 0ddbd6f22ea1f9f1bfcb54b309a56d664a99d8fd5c164e3c0eefe055535e09b2
Contents?: true
Size: 508 Bytes
Versions: 3
Compression:
Stored size: 508 Bytes
Contents
# frozen_string_literal: true module Polycrystal class Loader attr_reader :build_path, :registry def initialize(build_path:, registry: Polycrystal::Registry.instance) @build_path = build_path @registry = registry end def load compiler = Polycrystal::Compiler.new( build_path: build_path, registry: registry ) compiler.prepare library = compiler.execute load_library(library) # load_library is defined in C file end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
polycrystal-0.1.2 | lib/polycrystal/loader.rb |
polycrystal-0.1.1 | lib/polycrystal/loader.rb |
polycrystal-0.1.0-x86_64-darwin-21 | lib/polycrystal/loader.rb |