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
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
|
# File 'lib/fortitude/tags/tag_support.rb', line 21
def _fortitude_formatted_output_tag_yield(tag_name, suppress_formatting_inside)
rc = @_fortitude_rendering_context
if rc.format_output?
rc.needs_newline!
rc.increase_indent!
begin
rc.suppress_formatting! if suppress_formatting_inside
yield
ensure
rc.decrease_indent!
if suppress_formatting_inside
rc.desuppress_formatting!
else
rc.needs_newline!
rc.about_to_output_non_whitespace!
end
end
else
yield
end
end
|
#_fortitude_raise_no_content_allowed_error(tag_name) ⇒ Object
43
44
45
|
# File 'lib/fortitude/tags/tag_support.rb', line 43
def _fortitude_raise_no_content_allowed_error(tag_name)
raise Fortitude::Errors::NoContentAllowed.new(self, tag_name)
end
|