Module: Vedeu::Presentation::Parent Private
- Includes:
- Common
- Included in:
- Colour, Styles, Views::Line, Views::Stream, Views::View
- Defined in:
- lib/vedeu/presentation/parent.rb
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.
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.
15 16 17 18 19 20 21 22 23 |
# File 'lib/vedeu/presentation/parent.rb', line 15 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.
26 27 28 |
# File 'lib/vedeu/presentation/parent.rb', line 26 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.
31 32 33 |
# File 'lib/vedeu/presentation/parent.rb', line 31 def parent? present?(@parent) end |