Skip to content

Instantly share code, notes, and snippets.

@korabh
Created May 19, 2017 23:03
Show Gist options
  • Save korabh/f13b5e44adb92177cd9c30be0af01f55 to your computer and use it in GitHub Desktop.
Save korabh/f13b5e44adb92177cd9c30be0af01f55 to your computer and use it in GitHub Desktop.
irb(main):001:0> require “scanf”
=> true
irb(main):002:0> “Mozaix LLC”.scanf(“%s%s”)
=> [“Mozaix”, “LLC”]
irb(main):003:0> “Mozaix 2017”.scanf(“%s%d”)
=> [“Mozaix”, 2017]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment