Class: String
- Inherits:
-
Object
- Object
- String
- Defined in:
- lib/force_encoding.rb
Instance Method Summary collapse
Instance Method Details
#dfe(e) ⇒ Object
6 7 8 |
# File 'lib/force_encoding.rb', line 6 def dfe(e) dup.fe(e) end |
#dfeb ⇒ Object
22 23 24 |
# File 'lib/force_encoding.rb', line 22 def dfeb dup.feb end |
#dfeu ⇒ Object
18 19 20 |
# File 'lib/force_encoding.rb', line 18 def dfeu dup.feu end |
#fe(e) ⇒ Object
2 3 4 |
# File 'lib/force_encoding.rb', line 2 def fe(e) force_encoding(encoding) end |
#feb ⇒ Object
14 15 16 |
# File 'lib/force_encoding.rb', line 14 def feb fe(Encoding::ASCII_8BIT) end |
#feu ⇒ Object
10 11 12 |
# File 'lib/force_encoding.rb', line 10 def feu fe(Encoding::UTF_8) end |