Class: Vedeu::Borders::Null Private
- Inherits:
-
Object
- Object
- Vedeu::Borders::Null
- Extended by:
- Forwardable
- Defined in:
- lib/vedeu/borders/null.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 Vedeu::Borders::Border that acts like the real thing, but does nothing.
Instance Attribute Summary collapse
- #name ⇒ String|Symbol|NilClass readonly private
Instance Method Summary collapse
- #enabled? ⇒ Boolean private
-
#geometry ⇒ Object
private
private
Returns the geometry for the interface.
-
#initialize(attributes = {}) ⇒ Vedeu::Borders::Null
constructor
private
Returns a new instance of Vedeu::Borders::Null.
- #render ⇒ Array private
Constructor Details
#initialize(attributes = {}) ⇒ Vedeu::Borders::Null
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 Vedeu::Borders::Null.
35 36 37 38 |
# File 'lib/vedeu/borders/null.rb', line 35 def initialize(attributes = {}) @attributes = attributes @name = @attributes[:name] end |
Instance Attribute Details
#name ⇒ String|Symbol|NilClass (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.
28 29 30 |
# File 'lib/vedeu/borders/null.rb', line 28 def name @name end |
Instance Method Details
#enabled? ⇒ 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.
41 42 43 |
# File 'lib/vedeu/borders/null.rb', line 41 def enabled? false end |
#geometry ⇒ Object (private)
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 geometry for the interface.
55 56 57 |
# File 'lib/vedeu/borders/null.rb', line 55 def geometry @geometry ||= Vedeu.geometries.by_name(name) end |
#render ⇒ Array
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.
46 47 48 |
# File 'lib/vedeu/borders/null.rb', line 46 def render [] end |