Sha256: 65957ada85a46a4b8263d5e6277aa02439d1a9da4382305d23f22b6a2a71b9c9

Contents?: true

Size: 595 Bytes

Versions: 7

Compression:

Stored size: 595 Bytes

Contents

# frozen_string_literal: true

module Vedeu

  module Presentation

    include Vedeu::Presentation::Colour
    include Vedeu::Presentation::Position
    include Vedeu::Presentation::Styles

    # 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.
    #
    # @return [String] An escape sequence with value interpolated.
    def to_s
      render_position { render_colour { render_style { value } } }
    end
    alias to_str to_s

  end # Presentation

end # Vedeu

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
vedeu-0.8.20 lib/vedeu/presentation/presentation.rb
vedeu-0.8.19 lib/vedeu/presentation/presentation.rb
vedeu-0.8.18 lib/vedeu/presentation/presentation.rb
vedeu-0.8.17 lib/vedeu/presentation/presentation.rb
vedeu-0.8.16 lib/vedeu/presentation/presentation.rb
vedeu-0.8.15 lib/vedeu/presentation/presentation.rb
vedeu-0.8.14 lib/vedeu/presentation/presentation.rb