Sha256: 71c615372020f4ad08b491d3f68d269819b3de4f241c1759003e04d78c5ae2c8
Contents?: true
Size: 275 Bytes
Versions: 1
Compression:
Stored size: 275 Bytes
Contents
# frozen_string_literal: true module EasyParams module Types # base interface for struct type module Struct def array? false end def coerce(input) return if input.blank? self.class.new(input) end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
easy_params-0.5.0 | lib/easy_params/types/struct.rb |