struct

Repo::Ref

Inherits Comparable < JSON::Serializable < Struct < Value < Object

Constants

PROVIDER_RESOLVERS = {"github", "gitlab", "bitbucket"}

Constructors

new(resolver : String, url : String)
Source
new(url : String) : self
Source
new(uri : URI) : self
Source
new(*, __pull_for_json_serializable pull : JSON::PullParser)
Source

Class methods

parse(string : String)
Source

Instance methods

<=>(other : self)
Source
==(other : self)
base_url_raw(refname = nil)
Source
base_url_source(refname = nil)
Source
hash(hasher)

See Object#hash(hasher)

inspect(io : IO)

Appends this struct's name and instance variables names and values to the given IO.

struct Point
  def initialize(@x : Int32, @y : Int32)
  end
end

p1 = Point.new 1, 2
p1.to_s    # "Point(@x=1, @y=2)"
p1.inspect # "Point(@x=1, @y=2)"
Source
name
Source
nice_url
Source
owner
Source
provider_resolver?

Returns true if resolver is any of PROVIDER_RESOLVER.

Source
resolvable?
Source
resolver
Source
slug
Source
to_s(io : IO)

Same as #inspect(io).

Source
to_uri
Source