i got it to work for a singleton class this way:
# my overrides.rb
# A module that will be prepended into TopicEmbed.singleton_class
module TopicEmbedOverrides
# Override parse_html method
def parse_html(html, url) # note: i dont use self. here
# my new stuff here
# then run original implementation
super
end
end
# do the override here
class ::TopicEmbed
singleton_class.prepend TopicEmbedOverrides
end