class RawTextNode

Public Class Methods

new(text) click to toggle source
# File lib/textile/nodes.rb, line 26
def initialize(text)
  @text = text
end

Public Instance Methods

build() click to toggle source
# File lib/textile/nodes.rb, line 30
def build
  CGI.escapeHTML(@text).gsub("\n", '<br>')
end