instance method
create_path_and_open_file
Ruby on Rails 3.2.22.5
Since v3.1.12 Last seen in v3.2.22.5Available in: v3.1.12 v3.2.22.5
Signature
create_path_and_open_file(printer_name)
No documentation comment.
Parameters
-
printer_namereq
Source
# File activesupport/lib/active_support/testing/performance/rubinius.rb, line 56
def create_path_and_open_file(printer_name)
fname = "#{output_filename}_#{printer_name}.txt"
FileUtils.mkdir_p(File.dirname(fname))
File.open(fname, 'wb') do |file|
yield(file)
end
end
Defined in activesupport/lib/active_support/testing/performance/rubinius.rb line 56
· View on GitHub
· Improve this page
· Find usages on GitHub