Class: String

Inherits:
Object
  • Object
show all
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

#dfebObject



22
23
24
# File 'lib/force_encoding.rb', line 22

def dfeb
  dup.feb
end

#dfeuObject



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

#febObject



14
15
16
# File 'lib/force_encoding.rb', line 14

def feb
  fe(Encoding::ASCII_8BIT)
end

#feuObject



10
11
12
# File 'lib/force_encoding.rb', line 10

def feu
  fe(Encoding::UTF_8)
end