abstract class Shards::Resolver

Direct Known Subclasses

Defined in:

resolvers/resolver.cr

Constructors

Class Method Summary

Instance Method Summary

Constructor Detail

def self.new(name : String, source : String) #

[View source]

Class Method Detail

def self.build(key : String, name : String, source : String) #

[View source]
def self.clear_resolver_cache #

[View source]
def self.find_class(key : String) : Resolver.class | Nil #

[View source]
def self.find_resolver(key : String, name : String, source : String) #

[View source]
def self.normalize_key_source(key : String, source : String) #

[View source]
def self.register_resolver(key, resolver) #

[View source]

Instance Method Detail

def ==(other : Resolver) #

[View source]
abstract def available_releases : Array(Version) #

[View source]
abstract def install_sources(version : Version, install_path : String) #

[View source]
def latest_version_for_ref(ref : Ref | Nil) : Version #

[View source]
def matches_ref?(ref : Ref, version : Version) #

[View source]
def name : String #

[View source]
def parse_requirement(params : Hash(String, String)) : Requirement #

[View source]
abstract def read_spec(version : Version) : String | Nil #

[View source]
abstract def report_version(version : Version) : String #

[View source]
def source : String #

[View source]
def spec(version : Version) : Spec #

[View source]
def to_s(io : IO) #
Description copied from class Reference

Appends a short String representation of this object which includes its class name and its object address.

class Person
  def initialize(@name : String, @age : Int32)
  end
end

Person.new("John", 32).to_s # => #<Person:0x10a199f20>

[View source]
def update_local_cache #

[View source]
def versions_for(req : Requirement) : Array(Version) #

[View source]
def yaml_source_entry #

[View source]