Method: Vedeu::Cursors::Move#initialize

Defined in:
lib/vedeu/cursors/move.rb

#initialize(name, direction, offset) ⇒ Vedeu::Cursors::Move

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.

Parameters:

  • name (NilClass|Symbol|String)

    The name of the model or target model to act upon. May default to Vedeu.focus.

  • direction (Symbol)
  • offset (Fixnum)


29
30
31
32
33
# File 'lib/vedeu/cursors/move.rb', line 29

def initialize(name, direction, offset)
  @name      = name
  @direction = direction
  @offset    = offset || 1
end