instance method
open_file
Ruby on Rails 7.2.3
Since v7.2.3 PrivateSignature
open_file(path)
No documentation comment.
Parameters
-
pathreq
Source
# File actionpack/lib/action_dispatch/testing/test_helpers/page_dump_helper.rb, line 23
def open_file(path)
require "launchy"
Launchy.open(path)
rescue LoadError
warn "File saved to #{path}.\nPlease install the launchy gem to open the file automatically."
end
Defined in actionpack/lib/action_dispatch/testing/test_helpers/page_dump_helper.rb line 23
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActionDispatch::TestHelpers::PageDumpHelper