Class: Prune::Fonts::BaseEn
Overview
Base class for English fonts.
Direct Known Subclasses
Instance Attribute Summary
Attributes inherited from Base
Instance Method Summary collapse
-
#decode(string) ⇒ Object
Decode string.
-
#initialize(document) ⇒ BaseEn
constructor
Initialize.
Methods inherited from Base
bold?, #encoding, font_name, #font_sym, italic?, #name, #reference
Methods included from PObjects
Constructor Details
Instance Method Details
#decode(string) ⇒ Object
Decode string.
19 20 21 22 23 |
# File 'lib/prune/fonts/base_en.rb', line 19 def decode(string) raise NonAsciiStringError unless Kconv.guess(string) == Kconv::ASCII pl(string) end |