Sha256: b269122f1437418f8d14e25aa20b91d85ecd6d54783bfe84d6a1b2ebd7f3ddb6
Contents?: true
Size: 365 Bytes
Versions: 7
Compression:
Stored size: 365 Bytes
Contents
require 'virtus' require 'vedeu/support/esc' module Vedeu class Style < Virtus::Attribute def coerce(value_or_values) return '' if value_or_values.nil? || value_or_values.empty? if value_or_values.is_a?(::Array) value_or_values.map { |s| Esc.string(s) }.join else Esc.string(value_or_values) end end end end
Version data entries
7 entries across 7 versions & 1 rubygems