Class: Ungarbled::Encoder::Base
- Inherits:
-
Object
- Object
- Ungarbled::Encoder::Base
- Defined in:
- lib/ungarbled/encoder/base.rb
Direct Known Subclasses
Instance Method Summary collapse
- #encode(filename) ⇒ Object
- #encode_for_zip_item(filename) ⇒ Object
-
#initialize(browser, options = {}) ⇒ Base
constructor
A new instance of Base.
Constructor Details
#initialize(browser, options = {}) ⇒ Base
6 7 8 9 |
# File 'lib/ungarbled/encoder/base.rb', line 6 def initialize(browser, = {}) @browser = browser = end |
Instance Method Details
#encode(filename) ⇒ Object
11 12 13 |
# File 'lib/ungarbled/encoder/base.rb', line 11 def encode(filename) @browser.ie? ? ::ERB::Util.url_encode(filename) : filename end |
#encode_for_zip_item(filename) ⇒ Object
15 16 17 |
# File 'lib/ungarbled/encoder/base.rb', line 15 def encode_for_zip_item(filename) filename end |