class ImageNode
Public Class Methods
new(src)
click to toggle source
# File lib/textile/nodes.rb, line 63 def initialize(src) @src = src end
Public Instance Methods
build()
click to toggle source
# File lib/textile/nodes.rb, line 67 def build output = [] output << '<img src="' output << transform_src output << '"/>' output.join('') end
transform_src()
click to toggle source
Hook for booru monkeypatch
# File lib/textile/nodes.rb, line 76 def transform_src CGI.escapeHTML(@src) end