Sha256: 4234774997038df4346fc2d3c180dd1fff0a11182d12b3bc02840e3e587537ba

Contents?: true

Size: 609 Bytes

Versions: 4

Compression:

Stored size: 609 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::Clear object represents a cleared cell using
    # the space character.
    #
    # @api private
    #
    class Clear < Vedeu::Cells::Empty

      # @return [Boolean]
      def cell?
        false
      end

      # @return [Symbol]
      def type
        :clear
      end

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

    end # Clear

  end # Cells

end # Vedeu

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
vedeu-0.8.10 lib/vedeu/cells/clear.rb
vedeu-0.8.9 lib/vedeu/cells/clear.rb
vedeu-0.8.8 lib/vedeu/cells/clear.rb
vedeu-0.8.7 lib/vedeu/cells/clear.rb