Class: Vedeu::Null::Generic Private

Inherits:
Object
  • Object
show all
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, Interfaces::Null

Instance Attribute Summary collapse

Instance Method Summary collapse

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.

Parameters:

  • attributes (Hash<Symbol => void>) (defaults to: {})

Options Hash (attributes):

  • name (String|Symbol|NilClass)


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

#attributesString (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:

  • (String)


13
14
15
# File 'lib/vedeu/null/generic.rb', line 13

def attributes
  @attributes
end

#nameString|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.

Returns:

  • (String|Symbol)


17
18
19
# File 'lib/vedeu/null/generic.rb', line 17

def name
  @name
end

Instance Method Details

#falsyBoolean 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.

Returns:



30
31
32
# File 'lib/vedeu/null/generic.rb', line 30

def falsy
  false
end

#nullNilClass 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.

Returns:

  • (NilClass)


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.

Returns:



69
70
71
# File 'lib/vedeu/null/generic.rb', line 69

def null?
  true
end

#storeVedeu::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.

Returns:



79
80
81
# File 'lib/vedeu/null/generic.rb', line 79

def visible=(*)
  false
end