Skip to content

Instantly share code, notes, and snippets.

@pointcom
Last active January 4, 2018 11:15
Show Gist options
  • Save pointcom/ce727d2d296500295b673dcc7fa84567 to your computer and use it in GitHub Desktop.
Save pointcom/ce727d2d296500295b673dcc7fa84567 to your computer and use it in GitHub Desktop.
Ruby 2.5
'- Do you know whether this string'.start_with?(/^- /)
=> true
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment