Class: StringHelper::Charpp

Inherits:
Object
  • Object
show all
Defined in:
lib/crequire/string_helper.rb

Instance Method Summary collapse

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

#deleteObject



24
25
26
27
# File 'lib/crequire/string_helper.rb', line 24

def delete
  type.delete_charpp(@pointer)
  @pointer = nil
end

#pointerObject



16
17
18
# File 'lib/crequire/string_helper.rb', line 16

def pointer
  @pointer
end

#valueObject



20
21
22
# File 'lib/crequire/string_helper.rb', line 20

def value
  type.charpp_value(@pointer)
end