lib/vedeu/cursors/cursor.rb in vedeu-0.6.53 vs lib/vedeu/cursors/cursor.rb in vedeu-0.6.54

- old
+ new

@@ -45,11 +45,12 @@ new(attributes).store end # Returns a new instance of Vedeu::Cursors::Cursor. # - # @param attributes [Hash] + # @params attributes [Hash<Symbol => Boolean|Fixnum|String| + # Vedeu::Cursors::Repository>] # @option attributes name [String|Symbol] The name of the # interface this cursor belongs to. # @option attributes ox [Fixnum] The offset x coordinate. # @option attributes oy [Fixnum] The offset y coordinate. # @option attributes repository @@ -65,11 +66,12 @@ defaults.merge!(attributes).each do |key, value| instance_variable_set("@#{key}", value) end end - # @return [Hash] + # @return [Hash<Symbol => Boolean|Fixnum|String| + # Vedeu::Cursors::Repository>] def attributes { name: @name, ox: ox, oy: oy, @@ -265,11 +267,12 @@ Vedeu::Geometry::Coordinate.new(name: name, offset: offset, type: type) end # The default values for a new instance of this class. # - # @return [Hash] + # @return [Hash<Symbol => Boolean|Fixnum|String| + # Vedeu::Cursors::Repository>] def defaults { name: '', ox: 0, oy: 0, @@ -283,10 +286,10 @@ # @return [Vedeu::Models::Escape] def escape_sequence Vedeu::Models::Escape.new(position: position, value: visibility) end - # @return [Hash] + # @return [Hash<Symbol => Fixnum>] def new_attributes(new_y = y, new_x = x, new_oy = oy, new_ox = ox) attributes.merge!(x: new_x, y: new_y, ox: new_ox, oy: new_oy) end # Store the cursor and refresh the cursor.