Sha256: 2b2a21628a34c1e09735c20e360a7916f27af0229dcbec240171cb17aed86fae
Contents?: true
Size: 333 Bytes
Versions: 1
Compression:
Stored size: 333 Bytes
Contents
#!/usr/bin/env ruby # frozen_string_literal: true require 'treetop' require_relative 'node' # The attributes hash for an element class Attributes < Node def to_html(context) output = '' elements.each do |e| output += " #{e.elements[0].text_value}=\"#{e.elements[2].to_html(context)}\"" end output end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
emerald-lang-1.0.0 | lib/emerald/nodes/attributes.rb |