Method: Tempfile.pathname
- Defined in:
- lib/langhelp/langhelp-sub.rb
.pathname(content, dir = Dir.tmpdir) ⇒ Object
Similar to Tempfile.path. But returns Pathname object.
156 157 158 |
# File 'lib/langhelp/langhelp-sub.rb', line 156 def pathname(content, dir=Dir.tmpdir) Pathname.new(path(content, dir=Dir.tmpdir)) end |