lib/rgeo/feature/multi_curve.rb in rgeo-2.3.0 vs lib/rgeo/feature/multi_curve.rb in rgeo-2.3.1
- old
+ new
@@ -63,11 +63,16 @@
# === Notes
#
# Returns a boolean value. Note that this is different from the SFS
# specification, which stipulates an integer return value.
+ def closed?
+ raise Error::UnsupportedOperation, "Method MultiCurve#closed? not defined."
+ end
+
def is_closed?
- raise Error::UnsupportedOperation, "Method MultiCurve#is_closed? not defined."
+ warn "The is_closed? method is deprecated, please use the closed? counterpart, will be removed in v3" unless ENV["RGEO_SILENCE_DEPRECATION"]
+ closed?
end
end
end
end