lib/aixm/component/geometry.rb in aixm-0.3.4 vs lib/aixm/component/geometry.rb in aixm-0.3.5

- old
+ new

@@ -24,21 +24,23 @@ # ) # # @example Built by adding elements # geometry = AIXM.geometry # geometry << AIXM.point(...) - # geometry << AIXM.point(...) + # geometry.concat [AIXM.point(...), AIXM.point(...), ...] # # @see https://github.com/openflightmaps/ofmx/wiki/Airspace#avx-border-vertex class Geometry include Enumerable extend Forwardable # @!method each # @return [Enumerator] see Array#each # @!method << # @return [Array] see Array#<< - def_delegators :@result_array, :each, :<< + # @!method concat + # @return [Array] see Array#concat + def_delegators :@result_array, :each, :<<, :concat def initialize(*segments) @result_array = segments end