Class: Vedeu::Null::Generic

Inherits:
Object
  • Object
show all
Defined in:
lib/vedeu/null/generic.rb

Overview

Provides a non-existent model to swallow messages.

Direct Known Subclasses

Menus::Null, Interface, View

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(attributes = {}) ⇒ Vedeu::Null::Generic

Returns an instance of the Vedeu::Null::Generic class.

Parameters:

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

Options Hash (attributes):

  • name (String|NilClass)


22
23
24
25
# File 'lib/vedeu/null/generic.rb', line 22

def initialize(attributes = {})
  @attributes = attributes
  @name       = @attributes[:name]
end

Instance Attribute Details

#attributesString (readonly)

Returns:

  • (String)


11
12
13
# File 'lib/vedeu/null/generic.rb', line 11

def attributes
  @attributes
end

#nameString (readonly)

Returns:

  • (String)


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

def name
  @name
end

Instance Method Details

#nullNilClass Also known as: add, bottom_item, colour, current_item, deselect_item, hide, item, items, next_item, parent, prev_item, select_item, selected_item, show, style, toggle, top_item, view, zindex

Returns:

  • (NilClass)


28
29
30
# File 'lib/vedeu/null/generic.rb', line 28

def null(*)
  nil
end

#null?Boolean

Returns:

  • (Boolean)


52
53
54
# File 'lib/vedeu/null/generic.rb', line 52

def null?
  true
end

#storeVedeu::Null::Generic



57
58
59
# File 'lib/vedeu/null/generic.rb', line 57

def store
  self
end

#visible=FalseClass

Returns:

  • (FalseClass)


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

def visible=(*)
  false
end

#visible?FalseClass Also known as: visible

The generic null should not be visible.

Returns:

  • (FalseClass)


64
65
66
# File 'lib/vedeu/null/generic.rb', line 64

def visible?
  false
end