class TextNode

Public Class Methods

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

Public Instance Methods

build() click to toggle source

Hook for booru monkeypatch

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