Method: Rundoc::CodeCommand::Write#call
- Defined in:
- lib/rundoc/code_command/write.rb
#call(env = {}) ⇒ Object
34 35 36 37 38 39 |
# File 'lib/rundoc/code_command/write.rb', line 34 def call(env = {}) puts "Writing to: '#{filename}'" mkdir_p File.write(filename, contents) contents end |