Module: Vedeu::Presentation::Parent Private

Includes:
Common
Included in:
Colour, Styles, Views::Line, Views::Stream, Views::View
Defined in:
lib/vedeu/presentation/parent.rb

Overview

This module is part of a private API. You should avoid using this module if possible, as it may be removed or be changed in the future.

Provide access to the parent class for a Views instance.

Instance Method Summary collapse

Methods included from Common

#absent?, #array?, #boolean, #boolean?, #empty_value?, #escape?, #falsy?, #hash?, #line_model?, #numeric?, #positionable?, #present?, #snake_case, #stream_model?, #string?, #symbol?, #truthy?, #view_model?

Instance Method Details

#nameNilClass|String|Symbol

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|String|Symbol)


17
18
19
20
21
22
23
24
25
# File 'lib/vedeu/presentation/parent.rb', line 17

def name
  if present?(@name)
    @name

  elsif parent? && present?(parent.name)
    parent.name

  end
end

#parentNilClass|void

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


28
29
30
# File 'lib/vedeu/presentation/parent.rb', line 28

def parent
  return @parent if parent?
end

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



33
34
35
# File 'lib/vedeu/presentation/parent.rb', line 33

def parent?
  present?(@parent)
end