Module: Portable::Modeling::ByteOrderMark
- Defined in:
- lib/portable/modeling/byte_order_mark.rb
Overview
Define all acceptable byte order mark values.
Constant Summary collapse
- UTF_8 =
"\xEF\xBB\xBF"
- UTF_16BE =
"\xFE\xFF"
- UTF_16LE =
"\xFF\xFE"
- UTF_32BE =
"\x00\x00\xFE\xFF"
- UTF_32LE =
"\xFE\xFF\x00\x00"
Class Method Summary collapse
Class Method Details
.resolve(value) ⇒ Object
21 22 23 |
# File 'lib/portable/modeling/byte_order_mark.rb', line 21 def resolve(value) value ? const_get(value.to_s.upcase.to_sym) : nil end |