struct Repo::Ref

Included Modules

Defined in:

repo/ref.cr

Constant Summary

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

Constructors

Class Method Summary

Instance Method Summary

Constructor Detail

def self.new(resolver : String, url : String) #

[View source]
def self.new(pull : JSON::PullParser) #

[View source]
def self.new(url : String) : self #

[View source]
def self.new(uri : URI) : self #

[View source]

Class Method Detail

def self.parse(string : String) #

[View source]

Instance Method Detail

def <=>(other : self) #

[View source]
def ==(other : self) #

def base_url_raw(refname = nil) #

[View source]
def base_url_source(refname = nil) #

[View source]
def hash(hasher) #
Description copied from struct Struct

See Object#hash(hasher)


def inspect(io : IO) #
Description copied from struct Struct

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)"

[View source]
def name #

[View source]
def nice_url #

[View source]
def owner #

[View source]
def provider_resolver? : Bool #

Returns true if #resolver is any of PROVIDER_RESOLVER.


[View source]
def resolvable? #

[View source]
def resolver : String #

[View source]
def slug #

[View source]
def to_s(io : IO) #
Description copied from struct Struct

Same as #inspect(io).


[View source]
def to_uri : URI #

[View source]
def url : String #

[View source]