Method: Typingpool::Project::Remote#file_to_url
- Defined in:
- lib/typingpool/project/remote.rb
#file_to_url(file) ⇒ Object
Given a file path, returns the URL to the file path were it to be uploaded by this instance.
49 50 51 |
# File 'lib/typingpool/project/remote.rb', line 49 def file_to_url(file) "#{url}/#{URI.escape(file)}" end |