Class: SWIG::Pointer
- Inherits:
-
Object
- Object
- SWIG::Pointer
- Defined in:
- lib/crequire/swig.rb
Instance Attribute Summary collapse
-
#class_name ⇒ Object
Returns the value of attribute class_name.
-
#name ⇒ Object
Returns the value of attribute name.
Instance Method Summary collapse
-
#initialize(name, class_name) ⇒ Pointer
constructor
A new instance of Pointer.
- #to_s ⇒ Object
Constructor Details
#initialize(name, class_name) ⇒ Pointer
Returns a new instance of Pointer.
115 116 117 118 |
# File 'lib/crequire/swig.rb', line 115 def initialize(name, class_name) @name = name.to_s @class_name = class_name ? class_name.to_s : name.to_s + 'p' end |
Instance Attribute Details
#class_name ⇒ Object
Returns the value of attribute class_name.
113 114 115 |
# File 'lib/crequire/swig.rb', line 113 def class_name @class_name end |
#name ⇒ Object
Returns the value of attribute name.
113 114 115 |
# File 'lib/crequire/swig.rb', line 113 def name @name end |
Instance Method Details
#to_s ⇒ Object
120 121 122 |
# File 'lib/crequire/swig.rb', line 120 def to_s "%pointer_class(#{@name}, #{camelize(@class_name)});" end |