Class: Ungarbled::Encoder::Base

Inherits:
Object
  • Object
show all
Defined in:
lib/ungarbled/encoder/base.rb

Direct Known Subclasses

Ja

Instance Method Summary collapse

Constructor Details

#initialize(browser, options = {}) ⇒ Base



6
7
8
9
# File 'lib/ungarbled/encoder/base.rb', line 6

def initialize(browser, options = {})
  @browser = browser
  @options = options
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