lib/vedeu/cursors/cursor.rb in vedeu-0.8.6 vs lib/vedeu/cursors/cursor.rb in vedeu-0.8.7
- old
+ new
@@ -83,11 +83,11 @@
# @param other [Vedeu::Cursors::Cursor]
# @return [Boolean]
def eql?(other)
self.class == other.class && name == other.name
end
- alias_method :==, :eql?
+ alias == eql?
# @return [String]
def inspect
"<#{self.class.name} name:'#{name}', x:#{x}, y:#{y}, ox:#{ox}, " \
"oy:#{oy}, visible:#{visible}>"
@@ -181,10 +181,10 @@
def to_s(&block)
return escape_sequence.to_s unless block_given?
"#{position}#{yield}#{escape_sequence}"
end
- alias_method :to_str, :to_s
+ alias to_str to_s
# Hide a named cursor, or without a name, the cursor of the
# currently focussed interface.
#
# @example