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)


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

#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)


15
16
17
# File 'lib/vedeu/null/generic.rb', line 15

def attributes
  @attributes
end

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

Returns:

  • (NilClass|Symbol|String)

    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

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



32
33
34
# File 'lib/vedeu/null/generic.rb', line 32

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)


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.

Returns:



71
72
73
# File 'lib/vedeu/null/generic.rb', line 71

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.



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.

Returns:



81
82
83
# File 'lib/vedeu/null/generic.rb', line 81

def visible=(*)
  false
end