Sha256: 3ff9b8fd6de99a5d2b460720d0c57ea77813be05c4d7a3226c0267f49bab41d2

Contents?: true

Size: 327 Bytes

Versions: 2

Compression:

Stored size: 327 Bytes

Contents

require 'virtus'

require 'vedeu/models/attributes/background'
require 'vedeu/models/attributes/foreground'

module Vedeu
  class Colour
    include Virtus.model

    attribute :foreground, Foreground, default: ''
    attribute :background, Background, default: ''

    def to_s
      foreground + background
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
vedeu-0.1.9 lib/vedeu/models/colour.rb
vedeu-0.1.8 lib/vedeu/models/colour.rb