Method: Vedeu::DSL::Interface#cursor

Defined in:
lib/vedeu/dsl/interface.rb

#cursor(value = true) ⇒ Cursor

Set the cursor visibility on an interface.

Examples:

interface 'my_interface' do
  cursor  true  # => show the cursor for this interface
  cursor  :show # => both of these are equivalent to line above
  cursor!       #
  # ...

  cursor false # => hide the cursor for this interface
  cursor nil   # => as above
  # ...

view 'my_interface' do
  cursor true
  # ...

Parameters:

  • value (Boolean) (defaults to: true)

    Any value other than nil or false will evaluate to true.

Returns:



73
74
75
76
77
# File 'lib/vedeu/dsl/interface.rb', line 73

def cursor(value = true)
  boolean = value ? true : false

  Vedeu::Cursor.new(name: model.name, visible: boolean).store
end