Class: NCPP::CodeLoc

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(loc, ov = nil) ⇒ CodeLoc

Returns a new instance of CodeLoc.



50
51
52
# File 'lib/ncpp/types.rb', line 50

def initialize(loc, ov = nil)
  @addr, @ov, @code_bin = Utils::resolve_code_loc(loc, ov)
end

Instance Attribute Details

#addrObject (readonly)

Returns the value of attribute addr.



48
49
50
# File 'lib/ncpp/types.rb', line 48

def addr
  @addr
end

#code_binObject (readonly)

Returns the value of attribute code_bin.



48
49
50
# File 'lib/ncpp/types.rb', line 48

def code_bin
  @code_bin
end

#ovObject (readonly)

Returns the value of attribute ov.



48
49
50
# File 'lib/ncpp/types.rb', line 48

def ov
  @ov
end