a guest Jul 19th, 2019 59 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. def rotate_string(a, b)
  2.     return false if a!=b && a.length != b.length
  3.     a = a*3
  4.     return true if a.include?(b)
  5.     return false
  6. end
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand