class TSparser::AribStringDecoder::Definition::ControlCode
Public Class Methods
new()
click to toggle source
# File lib/arib_string_decoder.rb, line 74 def initialize @map = Hash.new end
Public Instance Methods
get(byte)
click to toggle source
# File lib/arib_string_decoder.rb, line 86 def get(byte) return @map[byte.to_i(0)] end
match?(byte)
click to toggle source
# File lib/arib_string_decoder.rb, line 82 def match?(byte) return !!@map[byte.to_i(0)] end
set(name, code_num, operation_name, *args)
click to toggle source
# File lib/arib_string_decoder.rb, line 78 def set(name, code_num, operation_name, *args) @map[code_num] = [operation_name, args] end