Sha256: 4c0429ed2c3386f28294276c0f6579cb9a55896f4c61e272587b49dc59130178
Contents?: true
Size: 368 Bytes
Versions: 6
Compression:
Stored size: 368 Bytes
Contents
class Rad::TextUtils::Truncator < Rad::TextUtils::Processor def initialize processor, length super(processor) @chain = build_from( Rad::TextUtils::EnsureUtf, [Rad::TextUtils::Truncate, length] ) end def process text_or_html, env text_or_html = @chain.process text_or_html, env call_next text_or_html, env end end
Version data entries
6 entries across 6 versions & 1 rubygems