Class: Udb::InstructionType

Inherits:
TopLevelDatabaseObject show all
Defined in:
lib/udb/obj/instruction.rb

Instance Attribute Summary

Attributes inherited from DatabaseObject

#arch, #data, #data_path, #long_name, #name

Instance Method Summary collapse

Methods inherited from TopLevelDatabaseObject

create_json_schemer_resolver, #key?, #keys, #validate

Methods inherited from DatabaseObject

#<=>, #__source, #cfg_arch, #cfg_arch?, #clone, #defer, #defined_by_condition, #description, #inspect, #kind, #source_line

Constructor Details

#initialize(data, data_path, arch) ⇒ InstructionType

Returns a new instance of InstructionType.



23
24
25
# File 'lib/udb/obj/instruction.rb', line 23

def initialize(data, data_path, arch)
  super(data, data_path, arch)
end

Instance Method Details

#lengthObject



27
# File 'lib/udb/obj/instruction.rb', line 27

def length = @data["length"]

#sizeObject



28
# File 'lib/udb/obj/instruction.rb', line 28

def size = length