Sha256: d73e70c71ddaef7d3a409448f01ec7a55a034e7357de63a98e3b12490b06366a
Contents?: true
Size: 496 Bytes
Versions: 3
Compression:
Stored size: 496 Bytes
Contents
# frozen_string_literal: true module RaaP module RBS def self.builder @builder ||= ::RBS::DefinitionBuilder.new(env: env.resolve_type_names) end def self.env @env ||= ::RBS::Environment.from_loader(loader) end def self.loader @loader ||= ::RBS::CLI::LibraryOptions.new.loader end def self.parse_type(type) raise ArgumentError, "empty type" if type == "" ::RBS::Parser.parse_type(type, require_eof: true) or raise end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
raap-0.3.0 | lib/raap/rbs.rb |
raap-0.2.0 | lib/raap/rbs.rb |
raap-0.1.0 | lib/raap/rbs.rb |