Class: Vedeu::Null::Generic
- Inherits:
-
Object
- Object
- Vedeu::Null::Generic
show all
- Defined in:
- lib/vedeu/null/generic.rb
Overview
Provides a non-existent model to swallow messages.
Instance Attribute Summary collapse
Instance Method Summary
collapse
-
#falsy ⇒ FalseClass
(also: #enabled?, #maximise, #maximised?, #unmaximise, #visible, #visible?)
-
#initialize(attributes = {}) ⇒ Vedeu::Null::Generic
constructor
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)
-
#null? ⇒ Boolean
-
#store ⇒ Vedeu::Null::Generic
-
#visible= ⇒ FalseClass
Constructor Details
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
11
12
13
|
# File 'lib/vedeu/null/generic.rb', line 11
def attributes
@attributes
end
|
#name ⇒ String|Symbol
15
16
17
|
# File 'lib/vedeu/null/generic.rb', line 15
def name
@name
end
|
Instance Method Details
#falsy ⇒ FalseClass
Also known as:
enabled?, maximise, maximised?, unmaximise, visible, visible?
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
39
40
41
|
# File 'lib/vedeu/null/generic.rb', line 39
def null(*)
nil
end
|
#null? ⇒ Boolean
65
66
67
|
# File 'lib/vedeu/null/generic.rb', line 65
def null?
true
end
|
70
71
72
|
# File 'lib/vedeu/null/generic.rb', line 70
def store
self
end
|
#visible= ⇒ FalseClass
75
76
77
|
# File 'lib/vedeu/null/generic.rb', line 75
def visible=(*)
false
end
|