title: How to save a parsed Gherkin into a Feature File (Ruby)
body: <p>I need to programatically modify feature files of cucumber.
  I have parsed a feature file using gherkin's gem 'gherkin/parser'.</p>
  
  <p>The problem I find is that after parsing, I end up with a hash with the following data as example:</p>
  
  <pre><code>{:type=&gt;:GherkinDocument, :feature=&gt;{:type=&gt;:Feature, :tags=&gt;[], :location=&gt;{:line=&gt;1, :column=&gt;1}, :language=&gt;"en", :keyword=&gt;"Feature", :name=&gt;"MyFeature", :description=&gt;"  As an user\n  I want to test a feature", :children=&gt;[{:type=&gt;:Scenario, :tags=&gt;[{:type=&gt;:Tag, :location=&gt;{:line=&gt;5, :column=&gt;3}, :name=&gt;"@MyTag"}], :location=&gt;{:line=&gt;6, :column=&gt;3}, :keyword=&gt;"Scenario", :name=&gt;"My scenario", :steps=&gt;[{:type=&gt;:Step, :location=&gt;{:line=&gt;7, :column=&gt;5}, :keyword=&gt;"Given ", :text=&gt;"I start the app"}, {:type=&gt;:Step, :location=&gt;{:line=&gt;8, :column=&gt;5}, :keyword=&gt;"And ", :text=&gt;"I generate a test user"}, {:type=&gt;:Step, :location=&gt;{:line=&gt;9, :column=&gt;5}, :keyword=&gt;"And ", :text=&gt;"I finish the flow"}]}]}, :comments=&gt;[]}
  </code></pre>
  
  <p>is it possible to convert this GherkinDocument generated by the parser to a plain text feature file to save it? What method or gem should I use to get</p>