Sha256: 3495d67543e96d2cc618dffbc2fb2f12e7d7f622dba6af7f6997388093c76a35
Contents?: true
Size: 1.25 KB
Versions: 1
Compression:
Stored size: 1.25 KB
Contents
module Vedeu module Presentation module Colour module Background include Vedeu::Repositories::Parent # When the background colour for the model exists, return it, # otherwise returns the parent background colour, or an empty # Vedeu::Colours::Background. # # @return [Vedeu::Colours::Background] def background @background ||= if colour && present?(colour.background) colour.background elsif self.is_a?(Vedeu::Views::Char) && name interface.colour.background elsif parent && present?(parent.background) parent.background else Vedeu::Colours::Background.new end end # Allows the setting of the background colour by coercing the # given value into a Vedeu::Colours::Background colour. # # @return [Vedeu::Colours::Background] def background=(value) @background = colour.background = value @_colour = @colour = colour end end # Background end # Colour end # Presentation end # Vedeu
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
vedeu-0.6.70 | lib/vedeu/presentation/background.rb |