title: How to calling a function with arguments in one .rb script to another .rb script
body: <p>I am new to Ruby language. i want to work with ruby language, i have installed ruby 2.1.5 and i am trying to calling one .rb script to another .rb script with arguements and can you please suggest me how to do this.
  i have written following code</p>
  
  <pre><code>b.rb
  
  require_relative 'a'
  def hello($a,$b,$c)
  $d=$a+$b+$c
  print "d value is :"+$d
  end
  
  
  
  a.rb
  
  def sample
  $a=1
  $b=3
  $c=4
  $str="hello"
  eval"&amp;$str($a,$b,$c)"
  end
  </code></pre>
  
  <p>i am getting nothing from this script can you please suggest me...</p>