Module: Fortitude::Tags::TagSupport

Extended by:
ActiveSupport::Concern
Defined in:
lib/fortitude/tags/tag_support.rb

Defined Under Namespace

Modules: ClassMethods Classes: TextPseudotag

Constant Summary collapse

FORTITUDE_TEXT_PSEUDOTAG =
TextPseudotag.new
FORTITUDE_TAG_PARTIAL_OPEN_END =
">".freeze
FORTITUDE_NO_RETURN_VALUE_FROM_TAGS =
Fortitude::Tags::TagReturnValue.new

Instance Method Summary collapse

Instance Method Details

#_fortitude_formatted_output_tag_yield(tag_name) ⇒ Object



21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
# File 'lib/fortitude/tags/tag_support.rb', line 21

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

#_fortitude_raise_no_content_allowed_error(tag_name) ⇒ Object



38
39
40
# File 'lib/fortitude/tags/tag_support.rb', line 38

def _fortitude_raise_no_content_allowed_error(tag_name)
  raise Fortitude::Errors::NoContentAllowed.new(self, tag_name)
end