Class: Cask::DSL::Appcast Private
- Inherits:
-
Object
- Object
- Cask::DSL::Appcast
- Defined in:
- Library/Homebrew/cask/dsl/appcast.rb
Overview
This class is part of a private API. You should avoid using this class if possible, as it may be removed or be changed in the future.
Class corresponding to the appcast
stanza.
Instance Attribute Summary collapse
- #must_contain ⇒ Object readonly private
- #parameters ⇒ Object readonly private
- #uri ⇒ Object readonly private
Instance Method Summary collapse
-
#initialize(uri, **parameters) ⇒ Appcast
constructor
private
A new instance of Appcast.
- #to_s ⇒ Object private
- #to_yaml ⇒ Object private
Constructor Details
#initialize(uri, **parameters) ⇒ Appcast
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
Returns a new instance of Appcast.
12 13 14 15 16 |
# File 'Library/Homebrew/cask/dsl/appcast.rb', line 12 def initialize(uri, **parameters) @uri = URI(uri) @parameters = parameters @must_contain = parameters[:must_contain] if parameters.key?(:must_contain) end |
Instance Attribute Details
#must_contain ⇒ Object (readonly)
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
10 11 12 |
# File 'Library/Homebrew/cask/dsl/appcast.rb', line 10 def must_contain @must_contain end |
#parameters ⇒ Object (readonly)
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
10 11 12 |
# File 'Library/Homebrew/cask/dsl/appcast.rb', line 10 def parameters @parameters end |
#uri ⇒ Object (readonly)
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
10 11 12 |
# File 'Library/Homebrew/cask/dsl/appcast.rb', line 10 def uri @uri end |
Instance Method Details
#to_s ⇒ Object
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
22 23 24 |
# File 'Library/Homebrew/cask/dsl/appcast.rb', line 22 def to_s uri.to_s end |
#to_yaml ⇒ Object
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
18 19 20 |
# File 'Library/Homebrew/cask/dsl/appcast.rb', line 18 def to_yaml [uri, parameters].to_yaml end |