Class: Igniter::Embed::SugarExpansion
- Inherits:
-
Object
- Object
- Igniter::Embed::SugarExpansion
- Defined in:
- lib/igniter/embed/sugar_expansion.rb
Instance Method Summary collapse
-
#initialize(config:) ⇒ SugarExpansion
constructor
A new instance of SugarExpansion.
- #to_h ⇒ Object
Constructor Details
#initialize(config:) ⇒ SugarExpansion
Returns a new instance of SugarExpansion.
6 7 8 |
# File 'lib/igniter/embed/sugar_expansion.rb', line 6 def initialize(config:) @config = config end |
Instance Method Details
#to_h ⇒ Object
10 11 12 13 14 15 16 17 18 19 20 21 22 |
# File 'lib/igniter/embed/sugar_expansion.rb', line 10 def to_h { host: config.name, owner: owner_name, root: config.root, cache: config.cache?, contracts: contracts, contractables: contractables, capabilities: [], events: [], clean_config: clean_config } end |