Class: OpenCV::Cv::String

Inherits:
Object
  • Object
show all
Defined in:
lib/ropencv/ropencv_ruby.rb

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.to_native(obj, context) ⇒ Object



76
77
78
79
80
81
82
83
# File 'lib/ropencv/ropencv_ruby.rb', line 76

def self.to_native(obj,context)
    if obj.is_a? ::String
        str = obj.to_str
        OpenCV::Cv::String.new(str,str.length).__obj_ptr__
    else
        rbind_to_native(obj,context)
    end
end

Instance Method Details

#to_sObject



84
85
86
# File 'lib/ropencv/ropencv_ruby.rb', line 84

def to_s
    c_str
end