Class: NCPP::CodeLoc
- Inherits:
-
Object
- Object
- NCPP::CodeLoc
- Defined in:
- lib/ncpp/types.rb
Instance Attribute Summary collapse
-
#addr ⇒ Object
readonly
Returns the value of attribute addr.
-
#code_bin ⇒ Object
readonly
Returns the value of attribute code_bin.
-
#ov ⇒ Object
readonly
Returns the value of attribute ov.
Instance Method Summary collapse
-
#initialize(loc, ov = nil) ⇒ CodeLoc
constructor
A new instance of CodeLoc.
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
#addr ⇒ Object (readonly)
Returns the value of attribute addr.
48 49 50 |
# File 'lib/ncpp/types.rb', line 48 def addr @addr end |
#code_bin ⇒ Object (readonly)
Returns the value of attribute code_bin.
48 49 50 |
# File 'lib/ncpp/types.rb', line 48 def code_bin @code_bin end |
#ov ⇒ Object (readonly)
Returns the value of attribute ov.
48 49 50 |
# File 'lib/ncpp/types.rb', line 48 def ov @ov end |