class String
Public Instance Methods
ord()
click to toggle source
# File lib/pdfbeads.rb, line 87 def ord() begin return Iconv.iconv( 'utf-16be','utf-8',self ).first.unpack('n')[0] rescue return 0x3F # Question mark end end
to_binary()
click to toggle source
# File lib/imageinspector.rb, line 37 def to_binary() force_encoding 'ASCII-8BIT' if respond_to? :force_encoding return self end
to_text()
click to toggle source
# File lib/pdfbeads.rb, line 78 def to_text() force_encoding 'UTF-8' if respond_to? :force_encoding return self end