Sha256: ecdaf30a6b386ff898fece4577850d5382fbb718f0e0e6ff976f7003b5a8481f

Contents?: true

Size: 220 Bytes

Versions: 3

Compression:

Stored size: 220 Bytes

Contents

module Vedeu
  module Buffer
    class Style < Virtus::Attribute
      def coerce(value)
        if value.is_a?(::String) && !value.empty?
          value.split(/ /).map(&:to_sym)
        end
      end
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
vedeu-0.0.25 lib/vedeu/output/buffer/style.rb
vedeu-0.0.24 lib/vedeu/output/buffer/style.rb
vedeu-0.0.23 lib/vedeu/output/buffer/style.rb