Sha256: 06c61783664369603013d9cacd344e1977d8c0ffe9b13cfcda68e6ec614a53a8
Contents?: true
Size: 389 Bytes
Versions: 1
Compression:
Stored size: 389 Bytes
Contents
#!/usr/bin/env ruby # frozen_string_literal: true require 'treetop' require_relative 'node' # # Appends compiled html for nested rule to the output. # elements[0] is the tag statement, elements[4] is any nested html. # class Nested < Node def to_html(context) elements[0].opening_tag(context) + elements[4].to_html(context) + elements[0].closing_tag(context) end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
emerald-lang-1.0.0 | lib/emerald/nodes/nested.rb |