Sha256: e5c9b51b74d91cb826a1df98963acdb6f7191b24e75fdce1f88183676a65b789
Contents?: true
Size: 392 Bytes
Versions: 1
Compression:
Stored size: 392 Bytes
Contents
# frozen_string_literal: true module Bemer class Component def initialize(view) @template_catalog = view.instance_variable_get(:@bemer_template_catalog) end def render(**options, &block) return if !block_given? || template_catalog.nil? Tree.new(template_catalog, **options).render(&block) end protected attr_reader :template_catalog end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
bemer-0.6.0 | lib/bemer/component.rb |