Sha256: 0ffda9254a02b28b6c83eabc1d42790d70eba922a644d8299fdd27d922232c0c

Contents?: true

Size: 553 Bytes

Versions: 2

Compression:

Stored size: 553 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 [String]
      def value
        ' '
      end
      alias_method :text, :value

    end # Clear

  end # Cells

end # Vedeu

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
vedeu-0.8.2 lib/vedeu/cells/clear.rb
vedeu-0.8.1 lib/vedeu/cells/clear.rb