Module: Vedeu::Presentation
- Included in:
- Borders::Border, Cells::Empty, Interfaces::Interface, Interfaces::Null, Output::Write, Views::Composition, Views::Line, Views::Stream, Views::View
- Defined in:
- lib/vedeu/presentation/all.rb,
lib/vedeu/presentation/style.rb,
lib/vedeu/presentation/colour.rb,
lib/vedeu/presentation/styles.rb,
lib/vedeu/presentation/position.rb,
lib/vedeu/presentation/presentation.rb
Overview
This module allows the sharing of presentation concerns between the models: Interface, View, Line and Stream.
Defined Under Namespace
Modules: Colour, Position, Styles Classes: Style
Instance Method Summary collapse
-
#to_s ⇒ String
(also: #to_str)
Converts the colours and styles to escape sequences, and when the parent model has previously set the colour and style, reverts back to that for consistent formatting.
Methods included from Styles
#name, #parent, #render_style, #style, #style=
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?
Methods included from Position
#position, #position=, #position?, #render_position, #x, #y
Methods included from Colour
#background, #background=, #colour, #colour=, #colour?, #foreground, #foreground=, #name, #named_colour, #named_colour?, #parent, #parent_colour, #parent_colour?, #render_colour
Instance Method Details
#to_s ⇒ String Also known as: to_str
Converts the colours and styles to escape sequences, and when the parent model has previously set the colour and style, reverts back to that for consistent formatting.
16 17 18 |
# File 'lib/vedeu/presentation/presentation.rb', line 16 def to_s render_position { render_colour { render_style { value } } } end |