Class: Proj::Strings
- Inherits:
-
Object
- Object
- Proj::Strings
- Extended by:
- Forwardable
- Includes:
- Enumerable
- Defined in:
- lib/proj/strings.rb
Instance Attribute Summary collapse
-
#strings ⇒ Object
readonly
Returns the value of attribute strings.
Instance Method Summary collapse
-
#initialize(pointer) ⇒ Strings
constructor
A new instance of Strings.
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
#strings ⇒ Object (readonly)
Returns the value of attribute strings.
9 10 11 |
# File 'lib/proj/strings.rb', line 9 def strings @strings end |