lib/vedeu/output/presentation/colour.rb in vedeu-0.6.10 vs lib/vedeu/output/presentation/colour.rb in vedeu-0.6.11

- old
+ new

@@ -4,12 +4,12 @@ # Provides colour related presentation behaviour. # module Colour - # When the background colour for the model exists, return it, otherwise - # returns the parent background colour, or an empty + # 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 @@ -22,12 +22,12 @@ Vedeu::Colours::Background.new end end - # Allows the setting of the background colour by coercing the given value - # into a Vedeu::Colours::Background colour. + # 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) @colour = Vedeu::Colours::Colour.coerce( background: Vedeu::Colours::Background.coerce(value), @@ -46,20 +46,20 @@ Vedeu::Colours::Colour.new end end - # Allows the setting of the model's colour by coercing the given value - # into a Vedeu::Colours::Colour. + # Allows the setting of the model's colour by coercing the given + # value into a Vedeu::Colours::Colour. # # @return [Vedeu::Colours::Colour] def colour=(value) @colour = Vedeu::Colours::Colour.coerce(value) end - # When the foreground colour for the model exists, return it, otherwise - # returns the parent foreground colour, or an empty + # When the foreground colour for the model exists, return it, + # otherwise returns the parent foreground colour, or an empty # Vedeu::Colours::Foreground. # # @return [Vedeu::Colours::Foreground] def foreground @foreground ||= if colour @@ -72,11 +72,11 @@ Vedeu::Colours::Foreground.new end end - # Allows the setting of the foreground colour by coercing the given value - # into a Vedeu::Colours::Foreground colour. + # Allows the setting of the foreground colour by coercing the + # given value into a Vedeu::Colours::Foreground colour. # # @return [Vedeu::Colours::Foreground] def foreground=(value) @colour = Vedeu::Colours::Colour.coerce( background: colour.background,