lib/vedeu/colours/colour.rb in vedeu-0.4.55 vs lib/vedeu/colours/colour.rb in vedeu-0.4.56
- old
+ new
@@ -39,10 +39,10 @@
# @!attribute [r] foreground
# @return [Vedeu::Foreground]
attr_reader :foreground
- # @param value []
+ # @param value [Vedeu::Colour|Fixnum|Hash|String]
# @return [Object]
def self.coerce(value)
return value if value.is_a?(self)
return new unless value.is_a?(Hash)