Class: RubimCode::Interrupts

Inherits:
Object
  • Object
show all
Defined in:
lib/rubimc.rb

Overview

Список аппаратных прерываний (содержит Си-код в текстовом виде)

Constant Summary collapse

@@interrupt_array =
[]

Class Method Summary collapse

Class Method Details

.add(val) ⇒ Object



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

.arrayObject



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