Sha256: aece627b91236ba37a45e41404bb7833de5853472210f2a3a740cfd9e6c72263

Contents?: true

Size: 748 Bytes

Versions: 6

Compression:

Stored size: 748 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 record_emitting_tag
    @_fortitude_rendering_context.emitting_tag!(self, FORTITUDE_TEXT_PSEUDOTAG, s, nil) { } # :if record_emitting_tag
  end                                                              # :if record_emitting_tag

  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

6 entries across 6 versions & 1 rubygems

Version Path
fortitude-0.0.7-java lib/fortitude/method_templates/text_method_template.rb.smpl
fortitude-0.0.7 lib/fortitude/method_templates/text_method_template.rb.smpl
fortitude-0.0.6-java lib/fortitude/method_templates/text_method_template.rb.smpl
fortitude-0.0.6 lib/fortitude/method_templates/text_method_template.rb.smpl
fortitude-0.0.5-java lib/fortitude/method_templates/text_method_template.rb.smpl
fortitude-0.0.5 lib/fortitude/method_templates/text_method_template.rb.smpl