Sha256: f45340e64d8c07f2e9961458305c9ab1891709a143a0bd644686ae5d2525276d

Contents?: true

Size: 737 Bytes

Versions: 5

Compression:

Stored size: 737 Bytes

Contents

def tag_text(s)
  @_fortitude_rendering_context.about_to_output_non_whitespace!    # :if format_output

  unless s.instance_variable_get("@html_safe")                     # :if needs_element_rules
    @_fortitude_rendering_context.record_tag(self, FORTITUDE_TEXT_PSEUDOTAG) { } # :if needs_element_rules
  end                                                              # :if needs_element_rules

  s.to_s.fortitude_append_escaped_string(@_fortitude_output_buffer_holder.output_buffer)
end

def tag_rawtext(s)
  @_fortitude_rendering_context.about_to_output_non_whitespace!    # :if format_output
  @_fortitude_output_buffer_holder.output_buffer.original_concat(s)
end

alias_method :text, :tag_text
alias_method :rawtext, :tag_rawtext

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
fortitude-0.0.4-java lib/fortitude/method_templates/text_method_template.rb.smpl
fortitude-0.0.4 lib/fortitude/method_templates/text_method_template.rb.smpl
fortitude-0.0.3 lib/fortitude/method_templates/text_method_template.rb.smpl
fortitude-0.0.2 lib/fortitude/method_templates/text_method_template.rb.smpl
fortitude-0.0.1 lib/fortitude/text_method_template.rb.smpl