class Slidr::Commands::SaveToFileCommand
Public Class Methods
new(path)
click to toggle source
# File lib/slidr/commands/save_to_file_command.rb, line 6 def initialize(path) @path = path end
Public Instance Methods
go(content)
click to toggle source
# File lib/slidr/commands/save_to_file_command.rb, line 10 def go(content) File.open(@path, "w") do |file| file.puts content end content end