Module: ReFe::Encoding
- Included in:
- FunctionSearcher, MethodSearcher
- Defined in:
- lib/refe/searcher.rb
Instance Method Summary collapse
Instance Method Details
#adjust_encoding(str) ⇒ Object
18 19 20 21 22 23 24 |
# File 'lib/refe/searcher.rb', line 18 def adjust_encoding( str ) if shift_jis_platform? NKF.nkf('-Es', str) else str end end |
#shift_jis_platform? ⇒ Boolean
26 27 28 |
# File 'lib/refe/searcher.rb', line 26 def shift_jis_platform? /mswin|mingw|cygwin|djgpp|vms/ === RUBY_PLATFORM end |