Sha256: b50bd30d8dc80b6f6662eeb4b798f9ad5a0676720e2fc33291967be50bf90fb3

Contents?: true

Size: 619 Bytes

Versions: 21

Compression:

Stored size: 619 Bytes

Contents

# frozen_string_literal: true

module Vedeu

  module Cells

    # Provides the character/escape sequence to draw one cell of a
    # with a custom value, colour and style.
    #
    # The Vedeu::Cells::Char object represents an alpha-numeric
    # character.
    #
    # @api private
    #
    class Char < Vedeu::Cells::Empty

      # @return [String]
      def as_html
        return value if present?(value)

        super
      end

      # @return [String]
      def text
        @value || ' '
      end

      # @return [Symbol]
      def type
        :char
      end

    end # Char

  end # Cells

end # Vedeu

Version data entries

21 entries across 21 versions & 1 rubygems

Version Path
vedeu-0.8.32 lib/vedeu/cells/char.rb
vedeu-0.8.31 lib/vedeu/cells/char.rb
vedeu-0.8.30 lib/vedeu/cells/char.rb
vedeu-0.8.29 lib/vedeu/cells/char.rb
vedeu-0.8.28 lib/vedeu/cells/char.rb
vedeu-0.8.27 lib/vedeu/cells/char.rb
vedeu-0.8.26 lib/vedeu/cells/char.rb
vedeu-0.8.25 lib/vedeu/cells/char.rb
vedeu-0.8.24 lib/vedeu/cells/char.rb
vedeu-0.8.23 lib/vedeu/cells/char.rb
vedeu-0.8.22 lib/vedeu/cells/char.rb
vedeu-0.8.21 lib/vedeu/cells/char.rb
vedeu-0.8.20 lib/vedeu/cells/char.rb
vedeu-0.8.19 lib/vedeu/cells/char.rb
vedeu-0.8.18 lib/vedeu/cells/char.rb
vedeu-0.8.17 lib/vedeu/cells/char.rb
vedeu-0.8.16 lib/vedeu/cells/char.rb
vedeu-0.8.15 lib/vedeu/cells/char.rb
vedeu-0.8.14 lib/vedeu/cells/char.rb
vedeu-0.8.13 lib/vedeu/cells/char.rb