Sha256: a15ac914c7d9cf628fab55b3fb70e61e3736e963400f080a1de95cb6ddae1f78

Contents?: true

Size: 428 Bytes

Versions: 2

Compression:

Stored size: 428 Bytes

Contents

module Vedeu
  module Buffer
    module Formatting
      include Virtus.module

      attribute :style,      Vedeu::Buffer::Style
      attribute :foreground, Symbol
      attribute :background, Symbol

      private

      def colour
        return [] if foreground.nil? || background.nil?

        [foreground, background]
      end

      def styles
        return [] if style.nil?

        style
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
vedeu-0.0.25 lib/vedeu/output/buffer/formatting.rb
vedeu-0.0.24 lib/vedeu/output/buffer/formatting.rb