Sha256: 3c65b8c0c9782bacbdd0fa3c369bab79fdaa4433d27b1729889f387de58e6486

Contents?: true

Size: 472 Bytes

Versions: 12

Compression:

Stored size: 472 Bytes

Contents

# frozen_string_literal: true

module Vedeu

  module Presentation

    # 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

12 entries across 12 versions & 1 rubygems

Version Path
vedeu-0.8.32 lib/vedeu/presentation/presentation.rb
vedeu-0.8.31 lib/vedeu/presentation/presentation.rb
vedeu-0.8.30 lib/vedeu/presentation/presentation.rb
vedeu-0.8.29 lib/vedeu/presentation/presentation.rb
vedeu-0.8.28 lib/vedeu/presentation/presentation.rb
vedeu-0.8.27 lib/vedeu/presentation/presentation.rb
vedeu-0.8.26 lib/vedeu/presentation/presentation.rb
vedeu-0.8.25 lib/vedeu/presentation/presentation.rb
vedeu-0.8.24 lib/vedeu/presentation/presentation.rb
vedeu-0.8.23 lib/vedeu/presentation/presentation.rb
vedeu-0.8.22 lib/vedeu/presentation/presentation.rb
vedeu-0.8.21 lib/vedeu/presentation/presentation.rb