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
479 480 481 |
# File 'lib/rabbit/utils.rb', line 479 def to_eucjp(str) NKF.nkf("-e", str) end |
.to_eucjp_from_utf8(str) ⇒ Object
487 488 489 |
# File 'lib/rabbit/utils.rb', line 487 def to_eucjp_from_utf8(str) NKF.nkf("-eW", str) end |
.to_utf8(str) ⇒ Object
475 476 477 |
# File 'lib/rabbit/utils.rb', line 475 def to_utf8(str) NKF.nkf("-w", str) end |
.to_utf8_from_eucjp(str) ⇒ Object
483 484 485 |
# File 'lib/rabbit/utils.rb', line 483 def to_utf8_from_eucjp(str) NKF.nkf("-wE", str) end |
Instance Method Details
#keep_kcode(new_kcode) ⇒ Object
462 463 464 |
# File 'lib/rabbit/utils.rb', line 462 def keep_kcode(new_kcode) yield end |