Module: Rabbit::Converter
- Defined in:
- lib/rabbit/utils.rb
Class Method Summary collapse
- .to_eucjp(str) ⇒ Object
- .to_eucjp_from_utf8(str) ⇒ Object
- .to_utf8(str) ⇒ Object
- .to_utf8_from_eucjp(str) ⇒ Object
Instance Method Summary collapse
Class Method Details
.to_eucjp(str) ⇒ Object
497 498 499 |
# File 'lib/rabbit/utils.rb', line 497 def to_eucjp(str) NKF.nkf("-e", str) end |
.to_eucjp_from_utf8(str) ⇒ Object
505 506 507 |
# File 'lib/rabbit/utils.rb', line 505 def to_eucjp_from_utf8(str) NKF.nkf("-eW", str) end |
.to_utf8(str) ⇒ Object
493 494 495 |
# File 'lib/rabbit/utils.rb', line 493 def to_utf8(str) NKF.nkf("-w", str) end |
.to_utf8_from_eucjp(str) ⇒ Object
501 502 503 |
# File 'lib/rabbit/utils.rb', line 501 def to_utf8_from_eucjp(str) NKF.nkf("-wE", str) end |
Instance Method Details
#keep_kcode(new_kcode) ⇒ Object
480 481 482 |
# File 'lib/rabbit/utils.rb', line 480 def keep_kcode(new_kcode) yield end |