Class: Hypertemplate::Hook::Tilt::HypertemplateTilt
- Inherits:
-
Object
- Object
- Hypertemplate::Hook::Tilt::HypertemplateTilt
- Defined in:
- lib/hypertemplate/hook/tilt.rb
Instance Method Summary collapse
-
#initialize ⇒ HypertemplateTilt
constructor
A new instance of HypertemplateTilt.
-
#new(view = nil, line = 1, options = {}, &block) ⇒ Object
unfortunately Tilt uses a global registry.
Constructor Details
#initialize ⇒ HypertemplateTilt
Returns a new instance of HypertemplateTilt.
9 10 11 |
# File 'lib/hypertemplate/hook/tilt.rb', line 9 def initialize @registry = Hypertemplate::Registry.new end |
Instance Method Details
#new(view = nil, line = 1, options = {}, &block) ⇒ Object
unfortunately Tilt uses a global registry
14 15 16 |
# File 'lib/hypertemplate/hook/tilt.rb', line 14 def new(view = nil, line = 1, = {}, &block) HypertemplateTemplate.new(@registry, view, line,, &block) end |