Class: Vedeu::Borders::Null Private

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

Instance Method Summary collapse

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.

Parameters:

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

Options Hash (attributes):

  • name (String|Symbol|NilClass)


35
36
37
38
# File 'lib/vedeu/borders/null.rb', line 35

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

Instance Attribute Details

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

Returns:

  • (String|Symbol|NilClass)


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.

Returns:

  • (Boolean)


41
42
43
# File 'lib/vedeu/borders/null.rb', line 41

def enabled?
  false
end

#geometryObject (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

#renderArray

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:

  • (Array)


46
47
48
# File 'lib/vedeu/borders/null.rb', line 46

def render
  []
end