abstract class Shards::Resolver
- Shards::Resolver
- Reference
- Object
Direct Known Subclasses
- Shards::CrystalResolver
- Shards::FossilResolver
- Shards::GitResolver
- Shards::HgResolver
- Shards::PathResolver
Defined in:
resolvers/resolver.crConstructors
Class Method Summary
- .build(key : String, name : String, source : String)
- .clear_resolver_cache
- .find_class(key : String) : Resolver.class | Nil
- .find_resolver(key : String, name : String, source : String)
- .normalize_key_source(key : String, source : String)
- .register_resolver(key, resolver)
Instance Method Summary
- #==(other : Resolver)
- #available_releases : Array(Version)
- #install_sources(version : Version, install_path : String)
- #latest_version_for_ref(ref : Ref | Nil) : Version
- #matches_ref?(ref : Ref, version : Version)
- #name : String
- #parse_requirement(params : Hash(String, String)) : Requirement
- #read_spec(version : Version) : String | Nil
- #report_version(version : Version) : String
- #source : String
- #spec(version : Version) : Spec
-
#to_s(io : IO)
Appends a short String representation of this object which includes its class name and its object address.
- #update_local_cache
- #versions_for(req : Requirement) : Array(Version)
- #yaml_source_entry
Constructor Detail
Class Method Detail
Instance Method Detail
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>