Module: Vedeu::DSL::Cursors
- Included in:
- Cursors::DSL, Views, Interfaces::DSL, Views::View::DSL
- Defined in:
- lib/vedeu/dsl/cursors.rb
Overview
Provides DSL methods for Vedeu::Cursors::Cursor objects.
Instance Method Summary collapse
-
#cursor(value = true) ⇒ Vedeu::Cursors::Cursor
Set the cursor visibility on an interface.
-
#cursor! ⇒ Vedeu::Cursors::Cursor
(also: #show_cursor!)
Set the cursor to visible for the interface or view.
-
#no_cursor! ⇒ Vedeu::Cursors::Cursor
(also: #hide_cursor!)
Set the cursor to invisible for the interface or view.
Instance Method Details
#cursor(value = true) ⇒ Vedeu::Cursors::Cursor
Set the cursor visibility on an interface.
18 19 20 21 22 23 24 |
# File 'lib/vedeu/dsl/cursors.rb', line 18 def cursor(value = true) boolean = value ? true : false model.cursor_visible = boolean Vedeu::Cursors::Cursor.store(name: name, visible: boolean) end |
#cursor! ⇒ Vedeu::Cursors::Cursor Also known as: show_cursor!
Set the cursor to visible for the interface or view.
29 30 31 |
# File 'lib/vedeu/dsl/cursors.rb', line 29 def cursor! cursor(true) end |
#no_cursor! ⇒ Vedeu::Cursors::Cursor Also known as: hide_cursor!
Set the cursor to invisible for the interface or view.
37 38 39 |
# File 'lib/vedeu/dsl/cursors.rb', line 37 def no_cursor! cursor(false) end |