Guest User

Untitled

a guest
Apr 3rd, 2014
115
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.20 KB | None | 0 0
  1. test_text = 'RubyMonk Is Pretty Brilliant'
  2.  
  3. nash = test_text.match(/ ./)
  4. nash.to_s
  5.  
  6. number = test_text.index('nash')
  7. number.to_i
  8.  
  9. freedom = test_text.match(/ ./, number)
  10.  
  11. puts "#{freedom}"
Advertisement
Add Comment
Please, Sign In to add comment