struct Repo::Ref
- Repo::Ref
- Struct
- Value
- Object
Included Modules
- Comparable(Repo::Ref)
- JSON::Serializable
Defined in:
repo/ref.crConstant Summary
-
PROVIDER_RESOLVERS =
{"github", "gitlab", "bitbucket"}
Constructors
- .new(resolver : String, url : String)
- .new(pull : JSON::PullParser)
- .new(url : String) : self
- .new(uri : URI) : self
Class Method Summary
Instance Method Summary
- #<=>(other : self)
- #==(other : self)
- #base_url_raw(refname = nil)
- #base_url_source(refname = nil)
-
#hash(hasher)
See
Object#hash(hasher)
-
#inspect(io : IO)
Appends this struct's name and instance variables names and values to the given IO.
- #name
- #nice_url
- #owner
-
#provider_resolver? : Bool
Returns
true
if#resolver
is any ofPROVIDER_RESOLVER
. - #resolvable?
- #resolver : String
- #slug
-
#to_s(io : IO)
Same as
#inspect(io)
. - #to_uri : URI
- #url : String
Constructor Detail
Class Method Detail
Instance Method Detail
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)"