Sha256: 6455f40b9196524a15f98ea0981336eb2529e6032b6bac9d02f472d6a8a454f2
Contents?: true
Size: 396 Bytes
Versions: 1
Compression:
Stored size: 396 Bytes
Contents
# frozen_string_literal: true module Bemer module Builders class Tree class Element def initialize(tree, block) @tree = tree @block = block end def elem(name = '', **options, &content) tree.add_node(block, name, **options, &content) end protected attr_reader :tree, :block end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
bemer-0.6.0 | lib/bemer/builders/tree/element.rb |