Список аппаратных прерываний (содержит Си-код в текстовом виде)
[]
228 229 230 231 232 233 234
# File 'lib/rubimc.rb', line 228 def self.add(val) if val.class.name == "String" @@interrupt_array << val else RubimCode.perror "wrong params in method #{__method__}" end end
224 225 226
# File 'lib/rubimc.rb', line 224 def self.array @@interrupt_array end
236 237 238 239 240
# File 'lib/rubimc.rb', line 236 def self.print @@interrupt_array.each do |interrupt_code| RubimCode.pout interrupt_code end end