Class: RubyRaider::FileGenerator
- Inherits:
-
Object
- Object
- RubyRaider::FileGenerator
- Defined in:
- lib/generators/files/file_generator.rb
Direct Known Subclasses
AutomationFileGenerator, CommonFileGenerator, CucumberFileGenerator, HelpersFileGenerator, RspecFileGenerator
Class Method Summary collapse
Class Method Details
.generate_file(name, path, content) ⇒ Object
4 5 6 7 8 |
# File 'lib/generators/files/file_generator.rb', line 4 def generate_file(name, path, content) file_path = "#{path}/#{name}" File.new(file_path, 'w+') File.write(file_path, content) end |