Module: Vedeu::Presentation Private

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/parent.rb,
lib/vedeu/presentation/styles.rb,
lib/vedeu/presentation/position.rb,
lib/vedeu/presentation/presentation.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.

This module allows the sharing of presentation concerns between the models: Interface, View, Line and Stream.

Defined Under Namespace

Modules: Colour, Parent, Position, Styles Classes: Style

Instance Method Summary collapse

Instance Method Details

#to_sString Also known as: to_str

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.

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.

Returns:

  • (String)

    An escape sequence with value interpolated.



12
13
14
# File 'lib/vedeu/presentation/presentation.rb', line 12

def to_s
  render_position { render_colour { render_style { value } } }
end