Sha256: 82eeac8be80532de8e56799a84c16ad057a00631bd7284a80b2a2e1a6c5c4e3c
Contents?: true
Size: 580 Bytes
Versions: 2
Compression:
Stored size: 580 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) else klass.new end end private # @return [Class] def klass Vedeu::Editor::Line end end # EditorLine end # Coercers end # Vedeu
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
vedeu-0.8.17 | lib/vedeu/coercers/editor_line.rb |
vedeu-0.8.16 | lib/vedeu/coercers/editor_line.rb |