Class: Igniter::Embed::HostBuilder
- Inherits:
-
Object
- Object
- Igniter::Embed::HostBuilder
- Defined in:
- lib/igniter/embed/host_builder.rb
Instance Method Summary collapse
- #cache(value) ⇒ Object
- #contract(definition, as: nil) ⇒ Object
- #contracts(&block) ⇒ Object
-
#initialize(config:) ⇒ HostBuilder
constructor
A new instance of HostBuilder.
- #owner(value) ⇒ Object
- #path(value) ⇒ Object
- #root(value) ⇒ Object
Constructor Details
#initialize(config:) ⇒ HostBuilder
Returns a new instance of HostBuilder.
6 7 8 |
# File 'lib/igniter/embed/host_builder.rb', line 6 def initialize(config:) @config = config end |
Instance Method Details
#cache(value) ⇒ Object
22 23 24 |
# File 'lib/igniter/embed/host_builder.rb', line 22 def cache(value) config.cache = value end |
#contract(definition, as: nil) ⇒ Object
26 27 28 |
# File 'lib/igniter/embed/host_builder.rb', line 26 def contract(definition, as: nil) config.contract(definition, as: as) end |
#contracts(&block) ⇒ Object
30 31 32 |
# File 'lib/igniter/embed/host_builder.rb', line 30 def contracts(&block) config.contracts(&block) end |
#owner(value) ⇒ Object
10 11 12 |
# File 'lib/igniter/embed/host_builder.rb', line 10 def owner(value) config.owner(value) end |
#path(value) ⇒ Object
14 15 16 |
# File 'lib/igniter/embed/host_builder.rb', line 14 def path(value) config.path(value) end |
#root(value) ⇒ Object
18 19 20 |
# File 'lib/igniter/embed/host_builder.rb', line 18 def root(value) config.root(value) end |