Skip to content

Commit

Permalink
Compatibility shim.
Browse files Browse the repository at this point in the history
  • Loading branch information
ioquatix committed Oct 27, 2024
1 parent d9c1e14 commit 0b248d8
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lib/xrb/markup.rb
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,10 @@ def self.raw(string)
MarkupString.raw(string)
end

def self.append(output, value)
value.append_markup(output)
end

def append_markup(output)
output << ::CGI.escape_html(self.to_s)
end
Expand Down

0 comments on commit 0b248d8

Please sign in to comment.