Sha256: d156b96c66dfa0b3ce2f7bb2ed81f2db77cba72a54cfd89760a5bb50ba99faab

Contents?: true

Size: 529 Bytes

Versions: 4

Compression:

Stored size: 529 Bytes

Contents

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 [String]
      def value
        ' '.freeze
      end
      alias_method :text, :value

    end # Clear

  end # Cells

end # Vedeu

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
vedeu-0.8.0 lib/vedeu/cells/clear.rb
vedeu-0.7.4 lib/vedeu/cells/clear.rb
vedeu-0.7.3 lib/vedeu/cells/clear.rb
vedeu-0.7.2 lib/vedeu/cells/clear.rb