Module: Hyde::DSL::ProbeConstructors

Included in:
ProbeContext, TemplateContext
Defined in:
lib/hyde/dsl/constructors_probe.rb

Overview

Probe (and subclasses) DSL construct

Instance Method Summary collapse

Instance Method Details

#erb(input, toplevel: nil, locals: nil) ⇒ Object

Create a new erb template

See Also:

  • Template#new


9
10
11
# File 'lib/hyde/dsl/constructors_probe.rb', line 9

def erb(input, toplevel: nil, locals: nil)
  Hyde::Templates::ERB.new(input, toplevel: toplevel, locals: locals)
end