title: How to execute a string fetched from a YAML file in Ruby
body: <p>I have the following setup in my RailsApplication:</p>
  
  <pre><code>class MyClass 
    def self.perform_action! specific_name
       init = YAML.load_file('path/to/file.yml')[specific_name]
       input = init[:option1]
  </code></pre>
  
  <p>Here is the YAML file that gets loaded:</p>
  
  <pre><code>:MyName:
    :option1: 'Data::Executables::SpecificFunction.new.run!'
    :option2: 'Data::Executables::SpecificFunction.new.new_method'
  </code></pre>
  
  <p>Now, when I call MyClass.perform_action!(:MyName) it sure enough gets the value of <code>:option1</code> and sets it equal to <code>input</code>. What I need though is for that line to be executed; having it as a string is of no use.</p>
  
  <p>How can that be done?</p>