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
- #name ⇒ NilClass|String|Symbol private
- #parent ⇒ NilClass|void private
- #parent? ⇒ Boolean private
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
#name ⇒ NilClass|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.
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 |
#parent ⇒ NilClass|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.
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.
33 34 35 |
# File 'lib/vedeu/presentation/parent.rb', line 33 def parent? present?(@parent) end |