lib/vedeu/cursors/cursor.rb in vedeu-0.6.20 vs lib/vedeu/cursors/cursor.rb in vedeu-0.6.21
- old
+ new
@@ -20,44 +20,40 @@
# @!attribute [r] attributes
# @return [Hash]
attr_reader :attributes
# @!attribute [r] name
- # @return [String]
+ # @return [String|Symbol]
attr_reader :name
# @!attribute [w] ox
# @return [Fixnum]
attr_writer :ox
# @!attribute [w] oy
# @return [Fixnum]
attr_writer :oy
- # @!attribute [r] state
- # @return [Boolean|Symbol]
- attr_reader :state
-
# @!attribute [w] x
# @return [Fixnum]
attr_writer :x
# @!attribute [w] y
# @return [Fixnum]
attr_writer :y
- # @param attributes [Hash] See #initialize
+ # @param (see #initialize)
# @return [Vedeu::Cursors::Cursor]
def self.store(attributes)
new(attributes).store
end
# Returns a new instance of Vedeu::Cursors::Cursor.
#
# @param attributes [Hash]
- # @option attributes name [String] The name of the interface
- # this cursor belongs to.
+ # @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
# [Vedeu::Repositories::Repository]
# @option attributes visible [Boolean] The visibility of the
@@ -277,7 +273,16 @@
end
end # Cursor
end # Cursors
+
+ # @!method hide_cursor
+ # @see Vedeu::Toggleable::ClassMethods.hide
+ # @!method show_cursor
+ # @see Vedeu::Toggleable::ClassMethods#show
+ # @!method toggle_cursor
+ # @see Vedeu::Toggleable::ClassMethods#toggle
+ def_delegators Vedeu::Cursors::Cursor, :hide_cursor, :show_cursor,
+ :toggle_cursor
end # Vedeu