Sha256: 765fb6a26940e4cf2ca21923c088a9a79768a3753f7897b56269bee2a43d4087
Contents?: true
Size: 531 Bytes
Versions: 1
Compression:
Stored size: 531 Bytes
Contents
module Coloration module Writers module AbstractWriter # @param line [String] # @return [Array<String>] def add_line(line = '') (@lines ||= []) << line end # @param name [String] # @param style [String] # @raise RuntimeError # @return [String] def format_item(name, style) raise RuntimeError, "Style for #{name} is missing!" unless style "#{name}=#{format_style(style)}" end end # AbstractWriter end # Writers end # Coloration
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
coloration-0.4.0 | lib/coloration/writers/abstract_writer.rb |