Sha256: bdc646d17cfb0f83c865bb5dec0e08a766768347d14573a9c54904c8007ecc73
Contents?: true
Size: 450 Bytes
Versions: 2
Compression:
Stored size: 450 Bytes
Contents
module Vedeu class Style attr_reader :values # @param values [String|Array] # @return [Style] def initialize(values) @values = values end # @return [String] def to_s escape_sequences end private def escape_sequences @_sequences ||= if values.nil? || values.empty? '' else Array(values).flatten.map { |value| Esc.string(value) }.join end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
vedeu-0.1.17 | lib/vedeu/models/style.rb |
vedeu-0.1.16 | lib/vedeu/models/style.rb |