Class: Udb::Instruction::Opcode
- Inherits:
-
Udb::InstructionSubtype::Opcode
- Object
- Udb::InstructionSubtype::Opcode
- Udb::Instruction::Opcode
- Extended by:
- T::Sig
- Defined in:
- lib/udb/obj/instruction.rb
Instance Attribute Summary collapse
- #value ⇒ Integer readonly
Instance Method Summary collapse
Constructor Details
#initialize(name, range, value)
181 182 183 184 |
# File 'lib/udb/obj/instruction.rb', line 181 def initialize(name, range, value) super(name, range) @value = value end |
Instance Attribute Details
#value ⇒ Integer (readonly)
178 179 180 |
# File 'lib/udb/obj/instruction.rb', line 178 def value @value end |
Instance Method Details
#opcode? ⇒ Boolean
187 |
# File 'lib/udb/obj/instruction.rb', line 187 def opcode? = true |
#to_s ⇒ String
190 |
# File 'lib/udb/obj/instruction.rb', line 190 def to_s = "#{name}[#{range}]" |