Sha256: 45c0de5827445c7d9ad5acaba3ffff661db070bb35aa3aa41763e6ff74b054b8
Contents?: true
Size: 472 Bytes
Versions: 1
Compression:
Stored size: 472 Bytes
Contents
module Hotcell class Tag < Hotcell::Node attr_reader :mode def initialize *_ super @mode = options[:mode] || :normal end def process context, *values values.last end def render context context.safe do concat context, process(context, *render_children(context)) end end def concat context, result case mode when :normal result else '' end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
hotcell-0.1.0 | lib/hotcell/node/tag.rb |