Sha256: 90ded0545066d8cec082f3b6fef3af95ec7a9b042f01c40afc1b713ed74a2978

Contents?: true

Size: 239 Bytes

Versions: 2

Compression:

Stored size: 239 Bytes

Contents

module Clio

  class Layout

    # Draws a horizonal line.
    class Line < Layout

      attr :fill

      def initialize(fill='-')
        @fill = '-'
      end

      def to_s
        fill * screen_width
      end

    end

  end

end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
clio-0.2.0 lib/clio/layout/line.rb
clio-0.3.0 lib/clio/layout/line.rb