Class: Vedeu::Null::Generic Private
- Inherits:
-
Object
- Object
- Vedeu::Null::Generic
- Defined in:
- lib/vedeu/null/generic.rb
Overview
This class is part of a private API. You should avoid using this class if possible, as it may be removed or be changed in the future.
Provides a non-existent model to swallow messages.
Direct Known Subclasses
Buffers::Null, Geometry::Null, Interfaces::Null, Menus::Null, View
Instance Attribute Summary collapse
- #attributes ⇒ String readonly private
- #name ⇒ String|Symbol readonly private
Instance Method Summary collapse
- #falsy ⇒ FalseClass (also: #cursor_visible?, #enabled?, #maximise, #maximised?, #unmaximise, #visible, #visible?, #editable?) private
-
#initialize(attributes = {}) ⇒ Vedeu::Null::Generic
constructor
private
Returns an instance of the Vedeu::Null::Generic class.
- #null ⇒ NilClass (also: #add, #bottom_item, #clear, #colour, #current_item, #deselect_item, #hide, #item, #items, #next_item, #parent, #prev_item, #render, #select_item, #selected_item, #show, #style, #toggle, #top_item, #view, #zindex) private
- #null? ⇒ Boolean private
- #store ⇒ Vedeu::Null::Generic private
- #visible= ⇒ FalseClass private
Constructor Details
#initialize(attributes = {}) ⇒ Vedeu::Null::Generic
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 an instance of the Vedeu::Null::Generic class.
22 23 24 25 |
# File 'lib/vedeu/null/generic.rb', line 22 def initialize(attributes = {}) @attributes = attributes @name = @attributes.fetch(:name, '') end |
Instance Attribute Details
#attributes ⇒ String (readonly)
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.
11 12 13 |
# File 'lib/vedeu/null/generic.rb', line 11 def attributes @attributes end |
#name ⇒ String|Symbol (readonly)
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.
15 16 17 |
# File 'lib/vedeu/null/generic.rb', line 15 def name @name end |
Instance Method Details
#falsy ⇒ FalseClass Also known as: cursor_visible?, enabled?, maximise, maximised?, unmaximise, visible, visible?, editable?
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.
28 29 30 |
# File 'lib/vedeu/null/generic.rb', line 28 def falsy false end |
#null ⇒ NilClass Also known as: add, bottom_item, clear, colour, current_item, deselect_item, hide, item, items, next_item, parent, prev_item, render, select_item, selected_item, show, style, toggle, top_item, view, zindex
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.
41 42 43 |
# File 'lib/vedeu/null/generic.rb', line 41 def null(*) nil end |
#null? ⇒ Boolean
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.
67 68 69 |
# File 'lib/vedeu/null/generic.rb', line 67 def null? true end |
#store ⇒ Vedeu::Null::Generic
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.
72 73 74 |
# File 'lib/vedeu/null/generic.rb', line 72 def store self end |
#visible= ⇒ FalseClass
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.
77 78 79 |
# File 'lib/vedeu/null/generic.rb', line 77 def visible=(*) false end |