Class: Geos::Handle
- Inherits:
-
Object
- Object
- Geos::Handle
- Defined in:
- lib/ffi-geos.rb
Instance Attribute Summary collapse
-
#error_handler(&block) ⇒ Object
Returns the value of attribute error_handler.
-
#notice_handler(&block) ⇒ Object
Returns the value of attribute notice_handler.
-
#ptr ⇒ Object
readonly
Returns the value of attribute ptr.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize ⇒ Handle
constructor
Deprecated initialization and teardown…
- #reset_error_handler ⇒ Object
- #reset_notice_handler ⇒ Object
Constructor Details
Instance Attribute Details
#error_handler(&block) ⇒ Object
Returns the value of attribute error_handler.
1292 1293 1294 1295 |
# File 'lib/ffi-geos.rb', line 1292 def error_handler(&block) self.error_handler = block if block_given? @error_handler end |
#notice_handler(&block) ⇒ Object
Returns the value of attribute notice_handler.
1287 1288 1289 1290 |
# File 'lib/ffi-geos.rb', line 1287 def notice_handler(&block) self.notice_handler = block if block_given? @notice_handler end |
#ptr ⇒ Object (readonly)
Returns the value of attribute ptr.
1263 1264 1265 |
# File 'lib/ffi-geos.rb', line 1263 def ptr @ptr end |
Class Method Details
.release(ptr) ⇒ Object
1273 1274 1275 |
# File 'lib/ffi-geos.rb', line 1273 def self.release(ptr) FFIGeos.GEOS_finish_r(ptr) end |
Instance Method Details
#reset_error_handler ⇒ Object
1301 1302 1303 |
# File 'lib/ffi-geos.rb', line 1301 def reset_error_handler self.error_handler = method(:default_error_handler) end |
#reset_notice_handler ⇒ Object
1297 1298 1299 |
# File 'lib/ffi-geos.rb', line 1297 def reset_notice_handler self.notice_handler = method(:default_notice_handler) end |