lib/vedeu/cursors/cursor.rb in vedeu-0.6.56 vs lib/vedeu/cursors/cursor.rb in vedeu-0.6.57
- old
+ new
@@ -11,11 +11,11 @@
include Vedeu::Repositories::Model
include Vedeu::Toggleable
extend Forwardable
- def_delegators :border,
+ def_delegators :geometry,
:bx,
:bxn,
:by,
:byn
@@ -45,11 +45,11 @@
new(attributes).store
end
# Returns a new instance of Vedeu::Cursors::Cursor.
#
- # @params attributes [Hash<Symbol => Boolean|Fixnum|String|
+ # @param 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.
@@ -251,14 +251,14 @@
@y
end
private
- # Returns the border for the interface.
+ # Returns the geometry for the interface.
#
- # @return (see Vedeu::Borders::Repository#by_name)
- def border
- @border ||= Vedeu.borders.by_name(name)
+ # @return (see Vedeu::Geometry::Repository#by_name)
+ def geometry
+ @geometry ||= Vedeu.geometries.by_name(name)
end
# Determine correct x and y related coordinates.
#
# @return [Vedeu::Geometry::Coordinate]