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
Instance Attribute Summary collapse
- #attributes ⇒ String readonly private
- #name ⇒ String|Symbol readonly private
Instance Method Summary collapse
- #falsy ⇒ Boolean (also: #cursor_visible?, #enabled?, #maximise, #maximised?, #unmaximise, #visible, #visible?, #editable?) private
-
#initialize(attributes = {}) ⇒ Vedeu::Null::Generic
constructor
private
Returns a new 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= ⇒ Boolean 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 a new instance of the Vedeu::Null::Generic class.
24 25 26 27 |
# File 'lib/vedeu/null/generic.rb', line 24 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.
13 14 15 |
# File 'lib/vedeu/null/generic.rb', line 13 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.
17 18 19 |
# File 'lib/vedeu/null/generic.rb', line 17 def name @name end |
Instance Method Details
#falsy ⇒ Boolean 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.
30 31 32 |
# File 'lib/vedeu/null/generic.rb', line 30 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.
43 44 45 |
# File 'lib/vedeu/null/generic.rb', line 43 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.
69 70 71 |
# File 'lib/vedeu/null/generic.rb', line 69 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.
74 75 76 |
# File 'lib/vedeu/null/generic.rb', line 74 def store self end |
#visible= ⇒ 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.
79 80 81 |
# File 'lib/vedeu/null/generic.rb', line 79 def visible=(*) false end |