Class: Proj::Strings

Inherits:
Object
  • Object
show all
Extended by:
Forwardable
Includes:
Enumerable
Defined in:
lib/proj/strings.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(pointer) ⇒ Strings

Returns a new instance of Strings.



11
12
13
14
15
# File 'lib/proj/strings.rb', line 11

def initialize(pointer)
  @strings = Array.new
  read_strings(pointer)
  Api.proj_string_list_destroy(pointer)
end

Instance Attribute Details

#stringsObject (readonly)

Returns the value of attribute strings.



9
10
11
# File 'lib/proj/strings.rb', line 9

def strings
  @strings
end