Sha256: 5360fa331befd66f1bb520559a5725f33b3932c0a569d39f736359ac26fa8bd3

Contents?: true

Size: 277 Bytes

Versions: 1

Compression:

Stored size: 277 Bytes

Contents

#!/usr/bin/env ruby
# frozen_string_literal: true

require 'treetop'
require_relative 'base_scope_fn'

# Isolates the scope to a subset of the context
class With < BaseScopeFn
  def to_html(body, context)
    var = elements[2].content(context)

    body.to_html(var)
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
emerald-lang-1.0.0 lib/emerald/nodes/with.rb