lib/vedeu/colours/foreground.rb in vedeu-0.8.20 vs lib/vedeu/colours/foreground.rb in vedeu-0.8.21

- old
+ new

@@ -17,18 +17,13 @@ present?(to_s) end # @return [String] def to_ast - return '' unless foreground? + return '' unless foreground? + return ':fg' unless rgb? - if rgb? - ":fg_#{colour.to_s.slice(1..-1)}" - - else - ':fg' - - end + ":fg_#{colour.to_s.slice(1..-1)}" end # @return [Hash<Symbol => String>] def to_h {