title: How to check whether a string contains a substring in Ruby
body: <p>I have a string variable with content:</p>
  
  <pre><code>varMessage =   
              "hi/thsid/sdfhsjdf/dfjsd/sdjfsdn\n"
  
  
              "/my/name/is/balaji.so\n"
              "call::myFunction(int const&amp;)\n"
              "void::secondFunction(char const&amp;)\n"
               .
               .
               .
              "this/is/last/line/liobrary.so"
  </code></pre>
  
  <p>In the string I have to find a sub-string:</p>
  
  <pre><code>"hi/thsid/sdfhsjdf/dfjsd/sdjfsdn\n"
  
  "/my/name/is/balaji.so\n"
  "call::myFunction(int const&amp;)\n"
  </code></pre>
  
  <p>How can I find it? I need to determine whether the sub-string is present or not.</p>