Sha256: 9934cf27f2cd2010ca5bba66fe3b7df18d2d66b3ead8e4ba8735fb1d6cb23a1a
Contents?: true
Size: 1.11 KB
Versions: 18
Compression:
Stored size: 1.11 KB
Contents
require 'active_support' require 'active_support/concern' require 'fortitude/tags/tag_return_value' module Fortitude module Tags module TagSupport extend ActiveSupport::Concern class TextPseudotag def name :_text end end FORTITUDE_TEXT_PSEUDOTAG = TextPseudotag.new FORTITUDE_TAG_PARTIAL_OPEN_END = ">".freeze def _fortitude_formatted_output_tag_yield(tag_name) rc = @_fortitude_rendering_context if rc.format_output? rc.needs_newline! rc.increase_indent! begin yield ensure rc.decrease_indent! rc.needs_newline! rc.about_to_output_non_whitespace! end else yield end end def _fortitude_raise_no_content_allowed_error(tag_name) raise Fortitude::Errors::NoContentAllowed.new(self, tag_name) end FORTITUDE_NO_RETURN_VALUE_FROM_TAGS = Fortitude::Tags::TagReturnValue.new module ClassMethods def fortitude_tag_support_included? true end end end end end
Version data entries
18 entries across 18 versions & 1 rubygems