Sha256: 79a0ee5635377c37dd6d084a9052b6f26a23195dbbfd11f2f47c2ed25259ac48
Contents?: true
Size: 565 Bytes
Versions: 5
Compression:
Stored size: 565 Bytes
Contents
# frozen_string_literal: true module Vedeu module Coercers # Provides the mechanism to convert a value into a # {Vedeu::Editor::Line}. # # @api private # class EditorLine < Vedeu::Coercers::Coercer # @return [void] def coerce if coerced? value elsif string?(value) klass.new(value) else klass.new end end private # @return [Class] def klass Vedeu::Editor::Line end end # EditorLine end # Coercers end # Vedeu
Version data entries
5 entries across 5 versions & 1 rubygems