Sha256: 7a22e1ed865ebab82b87c5ba1d38adacb799525272fbd3911c694986c51aff02

Contents?: true

Size: 760 Bytes

Versions: 18

Compression:

Stored size: 760 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) if s != nil
end

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

Version data entries

18 entries across 18 versions & 1 rubygems

Version Path
fortitude-0.9.6-java lib/fortitude/method_templates/text_method_template.rb.smpl
fortitude-0.9.6 lib/fortitude/method_templates/text_method_template.rb.smpl
fortitude-0.9.5-java lib/fortitude/method_templates/text_method_template.rb.smpl
fortitude-0.9.5 lib/fortitude/method_templates/text_method_template.rb.smpl
fortitude-0.9.4-java lib/fortitude/method_templates/text_method_template.rb.smpl
fortitude-0.9.4 lib/fortitude/method_templates/text_method_template.rb.smpl
fortitude-0.9.3-java lib/fortitude/method_templates/text_method_template.rb.smpl
fortitude-0.9.3 lib/fortitude/method_templates/text_method_template.rb.smpl
fortitude-0.9.2-java lib/fortitude/method_templates/text_method_template.rb.smpl
fortitude-0.9.2 lib/fortitude/method_templates/text_method_template.rb.smpl
fortitude-0.9.1-java lib/fortitude/method_templates/text_method_template.rb.smpl
fortitude-0.9.1 lib/fortitude/method_templates/text_method_template.rb.smpl
fortitude-0.9.0-java lib/fortitude/method_templates/text_method_template.rb.smpl
fortitude-0.9.0 lib/fortitude/method_templates/text_method_template.rb.smpl
fortitude-0.0.10-java lib/fortitude/method_templates/text_method_template.rb.smpl
fortitude-0.0.10 lib/fortitude/method_templates/text_method_template.rb.smpl
fortitude-0.0.9-java lib/fortitude/method_templates/text_method_template.rb.smpl
fortitude-0.0.9 lib/fortitude/method_templates/text_method_template.rb.smpl