Class: With

Inherits:
BaseScopeFn show all
Defined in:
lib/emerald/nodes/with.rb

Overview

Isolates the scope to a subset of the context

Instance Method Summary collapse

Instance Method Details

#to_html(body, context) ⇒ Object



9
10
11
12
13
# File 'lib/emerald/nodes/with.rb', line 9

def to_html(body, context)
  var = elements[2].content(context)

  body.to_html(var)
end