Method: Proj::PjObject.create
- Defined in:
- lib/proj/pj_object.rb
.create(value, context = nil) ⇒ PjObject
Instantiates an object from a string
68 69 70 71 72 73 74 75 76 |
# File 'lib/proj/pj_object.rb', line 68 def self.create(value, context=nil) ptr = Api.proj_create(context || Context.current, value) if ptr.null? Error.check_object(self) end create_object(ptr, context) end |