Class: Houston::Extensions::Layout::ExtensionDsl
- Inherits:
-
Object
- Object
- Houston::Extensions::Layout::ExtensionDsl
- Defined in:
- lib/houston/boot/extensions/layout.rb
Instance Method Summary collapse
- #footers(&block) ⇒ Object
-
#initialize(registry, *layouts) ⇒ ExtensionDsl
constructor
A new instance of ExtensionDsl.
- #meta(&block) ⇒ Object
- #scripts(&block) ⇒ Object
- #stylesheets(&block) ⇒ Object
Constructor Details
#initialize(registry, *layouts) ⇒ ExtensionDsl
Returns a new instance of ExtensionDsl.
30 31 32 33 |
# File 'lib/houston/boot/extensions/layout.rb', line 30 def initialize(registry, *layouts) @registry = registry @layouts = layouts end |
Instance Method Details
#footers(&block) ⇒ Object
43 44 45 |
# File 'lib/houston/boot/extensions/layout.rb', line 43 def (&block) add :footers, block end |
#meta(&block) ⇒ Object
35 36 37 |
# File 'lib/houston/boot/extensions/layout.rb', line 35 def (&block) add :meta, block end |
#scripts(&block) ⇒ Object
47 48 49 |
# File 'lib/houston/boot/extensions/layout.rb', line 47 def scripts(&block) add :scripts, block end |
#stylesheets(&block) ⇒ Object
39 40 41 |
# File 'lib/houston/boot/extensions/layout.rb', line 39 def stylesheets(&block) add :stylesheets, block end |