Class: Cask::URL::DSL Private
- Extended by:
- Forwardable
- Defined in:
- cask/url.rb,
sorbet/rbi/dsl/cask/url/dsl.rbi
This class is part of a private API. This class may only be used in the Homebrew/brew repository. Third parties should avoid using this class if possible, as it may be removed or changed without warning.
Instance Attribute Summary collapse
- #branch ⇒ String? readonly private
- #cookies ⇒ Hash{String => String}? readonly private
- #data ⇒ Hash{String => String}? readonly private
- #header ⇒ String, ... readonly private
- #only_path ⇒ String? readonly private
- #referer ⇒ URI::Generic, ... readonly private
- #revision ⇒ String? readonly private
- #revisions ⇒ Array<String>? readonly private
- #specs ⇒ Hash{Symbol => T.untyped} readonly private
- #tag ⇒ String? readonly private
- #trust_cert ⇒ Boolean? readonly private
- #uri ⇒ URI::Generic, String readonly private
- #user_agent ⇒ Symbol, ... readonly private
- #using ⇒ T::Class[AbstractDownloadStrategy], ... readonly private
- #verified ⇒ String? readonly private
Instance Method Summary collapse
- #initialize(uri, verified: nil, using: nil, tag: nil, branch: nil, revisions: nil, revision: nil, trust_cert: nil, cookies: nil, referer: nil, header: nil, user_agent: nil, data: nil, only_path: nil) ⇒ void constructor private
- #path(*args, &block) ⇒ T.untyped private
- #scheme(*args, &block) ⇒ T.untyped private
Constructor Details
#initialize(uri, verified: nil, using: nil, tag: nil, branch: nil, revisions: nil, revision: nil, trust_cert: nil, cookies: nil, referer: nil, header: nil, user_agent: nil, data: nil, only_path: nil) ⇒ void
This method is part of a private API. This method may only be used in the Homebrew/brew repository. Third parties should avoid using this method if possible, as it may be removed or changed without warning.
77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 |
# File 'cask/url.rb', line 77 def initialize( uri, verified: nil, using: nil, tag: nil, branch: nil, revisions: nil, revision: nil, trust_cert: nil, cookies: nil, referer: nil, header: nil, user_agent: nil, data: nil, only_path: nil ) @uri = T.let(URI(uri), T.any(URI::Generic, String)) header = Array(header) unless header.nil? specs = {} specs[:verified] = @verified = T.let(verified, T.nilable(String)) specs[:using] = @using = T.let(using, T.any(T::Class[AbstractDownloadStrategy], Symbol, NilClass)) specs[:tag] = @tag = T.let(tag, T.nilable(String)) specs[:branch] = @branch = T.let(branch, T.nilable(String)) specs[:revisions] = @revisions = T.let(revisions, T.nilable(T::Array[String])) specs[:revision] = @revision = T.let(revision, T.nilable(String)) specs[:trust_cert] = @trust_cert = T.let(trust_cert, T.nilable(T::Boolean)) specs[:cookies] = @cookies = T.let(, T.nilable(T::Hash[String, String])) specs[:referer] = @referer = T.let(referer, T.nilable(T.any(URI::Generic, String))) specs[:headers] = @header = T.let(header, T.nilable(T.any(String, T::Array[String]))) specs[:user_agent] = @user_agent = T.let(user_agent || :default, T.nilable(T.any(Symbol, String))) specs[:data] = @data = T.let(data, T.nilable(T::Hash[String, String])) specs[:only_path] = @only_path = T.let(only_path, T.nilable(String)) @specs = T.let(specs.compact, T::Hash[Symbol, T.untyped]) end |
Instance Attribute Details
#branch ⇒ String? (readonly)
This method is part of a private API. This method may only be used in the Homebrew/brew repository. Third parties should avoid using this method if possible, as it may be removed or changed without warning.
43 44 45 |
# File 'cask/url.rb', line 43 def branch @branch end |
#cookies ⇒ Hash{String => String}? (readonly)
This method is part of a private API. This method may only be used in the Homebrew/brew repository. Third parties should avoid using this method if possible, as it may be removed or changed without warning.
25 26 27 |
# File 'cask/url.rb', line 25 def @cookies end |
#data ⇒ Hash{String => String}? (readonly)
This method is part of a private API. This method may only be used in the Homebrew/brew repository. Third parties should avoid using this method if possible, as it may be removed or changed without warning.
25 26 27 |
# File 'cask/url.rb', line 25 def data @data end |
#header ⇒ String, ... (readonly)
This method is part of a private API. This method may only be used in the Homebrew/brew repository. Third parties should avoid using this method if possible, as it may be removed or changed without warning.
28 29 30 |
# File 'cask/url.rb', line 28 def header @header end |
#only_path ⇒ String? (readonly)
This method is part of a private API. This method may only be used in the Homebrew/brew repository. Third parties should avoid using this method if possible, as it may be removed or changed without warning.
43 44 45 |
# File 'cask/url.rb', line 43 def only_path @only_path end |
#referer ⇒ URI::Generic, ... (readonly)
This method is part of a private API. This method may only be used in the Homebrew/brew repository. Third parties should avoid using this method if possible, as it may be removed or changed without warning.
31 32 33 |
# File 'cask/url.rb', line 31 def referer @referer end |
#revision ⇒ String? (readonly)
This method is part of a private API. This method may only be used in the Homebrew/brew repository. Third parties should avoid using this method if possible, as it may be removed or changed without warning.
43 44 45 |
# File 'cask/url.rb', line 43 def revision @revision end |
#revisions ⇒ Array<String>? (readonly)
This method is part of a private API. This method may only be used in the Homebrew/brew repository. Third parties should avoid using this method if possible, as it may be removed or changed without warning.
19 20 21 |
# File 'cask/url.rb', line 19 def revisions @revisions end |
#specs ⇒ Hash{Symbol => T.untyped} (readonly)
This method is part of a private API. This method may only be used in the Homebrew/brew repository. Third parties should avoid using this method if possible, as it may be removed or changed without warning.
34 35 36 |
# File 'cask/url.rb', line 34 def specs @specs end |
#tag ⇒ String? (readonly)
This method is part of a private API. This method may only be used in the Homebrew/brew repository. Third parties should avoid using this method if possible, as it may be removed or changed without warning.
43 44 45 |
# File 'cask/url.rb', line 43 def tag @tag end |
#trust_cert ⇒ Boolean? (readonly)
This method is part of a private API. This method may only be used in the Homebrew/brew repository. Third parties should avoid using this method if possible, as it may be removed or changed without warning.
22 23 24 |
# File 'cask/url.rb', line 22 def trust_cert @trust_cert end |
#uri ⇒ URI::Generic, String (readonly)
This method is part of a private API. This method may only be used in the Homebrew/brew repository. Third parties should avoid using this method if possible, as it may be removed or changed without warning.
16 17 18 |
# File 'cask/url.rb', line 16 def uri @uri end |
#user_agent ⇒ Symbol, ... (readonly)
This method is part of a private API. This method may only be used in the Homebrew/brew repository. Third parties should avoid using this method if possible, as it may be removed or changed without warning.
37 38 39 |
# File 'cask/url.rb', line 37 def user_agent @user_agent end |
#using ⇒ T::Class[AbstractDownloadStrategy], ... (readonly)
This method is part of a private API. This method may only be used in the Homebrew/brew repository. Third parties should avoid using this method if possible, as it may be removed or changed without warning.
40 41 42 |
# File 'cask/url.rb', line 40 def using @using end |
#verified ⇒ String? (readonly)
This method is part of a private API. This method may only be used in the Homebrew/brew repository. Third parties should avoid using this method if possible, as it may be removed or changed without warning.
43 44 45 |
# File 'cask/url.rb', line 43 def verified @verified end |
Instance Method Details
#path(*args, &block) ⇒ T.untyped
This method is part of a private API. This method may only be used in the Homebrew/brew repository. Third parties should avoid using this method if possible, as it may be removed or changed without warning.
10 |
# File 'sorbet/rbi/dsl/cask/url/dsl.rbi', line 10 def path(*args, &block); end |
#scheme(*args, &block) ⇒ T.untyped
This method is part of a private API. This method may only be used in the Homebrew/brew repository. Third parties should avoid using this method if possible, as it may be removed or changed without warning.
13 |
# File 'sorbet/rbi/dsl/cask/url/dsl.rbi', line 13 def scheme(*args, &block); end |