instance method create_path_and_open_file

Ruby on Rails 3.1.12

Since v3.1.12 Last seen in v3.2.22.5

Available in: v3.1.12 v3.2.22.5

Signature

create_path_and_open_file(printer_name)

No documentation comment.

Parameters

printer_name req
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

Defined in ActiveSupport::Testing::Performance::Profiler

Type at least 2 characters to search.

↑↓ navigate · open · esc close