Class: Rips::Formats::Format

Inherits:
Object
  • Object
show all
Defined in:
lib/rips/formats/format.rb

Direct Known Subclasses

AFormat, BFormat, CFormat, DFormat

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(opcode, args_number) ⇒ Format

Returns a new instance of Format.



12
13
14
# File 'lib/rips/formats/format.rb', line 12

def initialize (opcode, args_number)
  @opcode, @args_number = opcode, args_number
end

Instance Attribute Details

#args_numberObject (readonly)

Returns the value of attribute args_number.



8
9
10
# File 'lib/rips/formats/format.rb', line 8

def args_number
  @args_number
end

#opcodeObject (readonly)

Returns the value of attribute opcode.



8
9
10
# File 'lib/rips/formats/format.rb', line 8

def opcode
  @opcode
end