Class: Vedeu::Null::Interface
- Inherits:
-
Object
- Object
- Vedeu::Null::Interface
- Defined in:
- lib/vedeu/null/interface.rb
Overview
Provides a non-existent model to swallow messages.
Instance Attribute Summary collapse
- #name ⇒ String readonly protected
Instance Method Summary collapse
- #attributes ⇒ Hash<Symbol => String>
- #initialize(name = nil) ⇒ Vedeu::Null::Interface constructor
-
#store ⇒ Vedeu::Null::Interface
Pretend to store this model in the repository.
-
#visible= ⇒ FalseClass
Override the visible= setter usually found on a Vedeu::Interface.
-
#visible? ⇒ FalseClass
The null interface should not be visible.
Constructor Details
#initialize(name = nil) ⇒ Vedeu::Null::Interface
10 11 12 |
# File 'lib/vedeu/null/interface.rb', line 10 def initialize(name = nil) @name = name end |
Instance Attribute Details
#name ⇒ String (readonly, protected)
46 47 48 |
# File 'lib/vedeu/null/interface.rb', line 46 def name @name end |
Instance Method Details
#attributes ⇒ Hash<Symbol => String>
15 16 17 18 19 |
# File 'lib/vedeu/null/interface.rb', line 15 def attributes { name: name, } end |
#store ⇒ Vedeu::Null::Interface
Pretend to store this model in the repository.
24 25 26 |
# File 'lib/vedeu/null/interface.rb', line 24 def store self end |
#visible= ⇒ FalseClass
Override the visible= setter usually found on a Vedeu::Interface.
38 39 40 |
# File 'lib/vedeu/null/interface.rb', line 38 def visible=(*) false end |
#visible? ⇒ FalseClass
The null interface should not be visible.
31 32 33 |
# File 'lib/vedeu/null/interface.rb', line 31 def visible? false end |