/01-01-indexOfSubstring.rb

http://github.com/monoceroi/7languages · Ruby · 3 lines · 1 code · 1 blank · 1 comment · 0 complexity · 0a4aa00f54612ff8dc333357812e0339 MD5 · raw file

  1. #! /usr/bin/env ruby
  2. puts "Hello, Ruby.".index("Ruby")