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 ⇒ NilClass|Symbol|String
readonly
private
The name of the model, the target model or the name of the associated model.
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.
26 27 28 29 |
# File 'lib/vedeu/null/generic.rb', line 26 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.
15 16 17 |
# File 'lib/vedeu/null/generic.rb', line 15 def attributes @attributes end |
#name ⇒ NilClass|Symbol|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.
Returns The name of the model, the target model or the name of the associated model.
19 20 21 |
# File 'lib/vedeu/null/generic.rb', line 19 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.
32 33 34 |
# File 'lib/vedeu/null/generic.rb', line 32 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.
45 46 47 |
# File 'lib/vedeu/null/generic.rb', line 45 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.
71 72 73 |
# File 'lib/vedeu/null/generic.rb', line 71 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.
76 77 78 |
# File 'lib/vedeu/null/generic.rb', line 76 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.
81 82 83 |
# File 'lib/vedeu/null/generic.rb', line 81 def visible=(*) false end |