Class: StringHelper::Charpp
- Inherits:
-
Object
- Object
- StringHelper::Charpp
- Defined in:
- lib/crequire/string_helper.rb
Instance Method Summary collapse
- #delete ⇒ Object
-
#initialize(type, pointer) ⇒ Charpp
constructor
A new instance of Charpp.
- #pointer ⇒ Object
- #value ⇒ Object
Constructor Details
#initialize(type, pointer) ⇒ Charpp
Returns a new instance of Charpp.
11 12 13 14 |
# File 'lib/crequire/string_helper.rb', line 11 def initialize(type, pointer) @type = type @pointer = pointer end |
Instance Method Details
#delete ⇒ Object
24 25 26 27 |
# File 'lib/crequire/string_helper.rb', line 24 def delete type.delete_charpp(@pointer) @pointer = nil end |
#pointer ⇒ Object
16 17 18 |
# File 'lib/crequire/string_helper.rb', line 16 def pointer @pointer end |
#value ⇒ Object
20 21 22 |
# File 'lib/crequire/string_helper.rb', line 20 def value type.charpp_value(@pointer) end |