re: I'm the maintainer of Babel, ask me anything! VIEW POST

VIEW PARENT COMMENT VIEW FULL DISCUSSION
 

Thanks for the answer! I recently wrote about my first attempt at putting some fun in code in the dev.to codebase:

  def pound_it
    text_color_hex&.prepend("#") unless text_color_hex&.starts_with?("#")
    bg_color_hex&.prepend("#") unless bg_color_hex&.starts_with?("#")
  end
code of conduct - report abuse