Sha256: 1d67f36375ca0815b7a1154dd08a13d617196e613a6761242870a58bd0450696
Contents?: true
Size: 586 Bytes
Versions: 15
Compression:
Stored size: 586 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 [Vedeu::Editor::Line] def coerce if coerced? value elsif string?(value) klass.new(value.chomp) else klass.new end end private # @return [Class] def klass Vedeu::Editor::Line end end # EditorLine end # Coercers end # Vedeu
Version data entries
15 entries across 15 versions & 1 rubygems