Method: Vedeu::Editor::Cursor#defaults

Defined in:
lib/vedeu/editor/cursor.rb

#defaultsHash<Symbol => Fixnum|NilClass|String|Symbol> (private)

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

Returns the default options/attributes for this class.

Returns:

  • (Hash<Symbol => Fixnum|NilClass|String|Symbol>)


175
176
177
178
179
180
181
182
183
# File 'lib/vedeu/editor/cursor.rb', line 175

def defaults
  {
    name: '',
    ox:   0,
    oy:   0,
    x:    0,
    y:    0,
  }
end