lib/characteristics/byte.rb in characteristics-0.3.1 vs lib/characteristics/byte.rb in characteristics-0.4.0
- old
+ new
@@ -1,5 +1,7 @@
+# frozen_string_literal: true
+
class ByteCharacteristics < Characteristics
HAS_C1 = /^(ISO-8859-|TIS-620)/
UNASSIGNED = {
0x80 => /^(IBM869)/,
@@ -149,22 +151,10 @@
def initialize(char)
super
@ord = char.ord
end
- def encoding_has_c0?
- true
- end
-
- def encoding_has_delete?
- true
- end
-
- def encoding_has_c1?
- !!(HAS_C1 =~ @encoding_name)
- end
-
def unicode?
false
end
def assigned?
@@ -193,7 +183,13 @@
EXTRA_BLANKS[@ord] =~ @encoding_name
end
def format?
FORMATS[@ord] =~ @encoding_name
+ end
+
+ private
+
+ def encoding_has_c1?
+ !!(HAS_C1 =~ @encoding_name)
end
end
\ No newline at end of file