Class: ChupaText::PathConverter
- Inherits:
-
Object
- Object
- ChupaText::PathConverter
- Defined in:
- lib/chupa-text/path-converter.rb
Instance Method Summary collapse
-
#convert ⇒ Object
-
#initialize(path, options = {}) ⇒ PathConverter
constructor
A new instance of PathConverter.
Constructor Details
#initialize(path, options = {}) ⇒ PathConverter
Returns a new instance of PathConverter.
21 22 23 24 |
# File 'lib/chupa-text/path-converter.rb', line 21 def initialize(path, ={}) @path = path @options = end |
Instance Method Details
#convert ⇒ Object
26 27 28 29 30 31 32 |
# File 'lib/chupa-text/path-converter.rb', line 26 def convert path = @path encoding = @options[:encoding] path = convert_encoding(path, encoding) if encoding path = convert_to_uri_path(path) if @options[:uri_escape] path end |