module StringRefinements
Public Instance Methods
slug()
click to toggle source
# File lib/madman/refinements/string.rb, line 3 def slug downcase.strip.gsub(' ', '-').gsub(/[^\w-]/, '') end
to_html()
click to toggle source
# File lib/madman/refinements/string.rb, line 7 def to_html CommonMarker.render_html self, :DEFAULT, [:table] end