Class: ParamsReady::Value::NonEmptyStringCoder
- Inherits:
-
StringCoder
- Object
- AbstractCoder
- Coder
- StringCoder
- ParamsReady::Value::NonEmptyStringCoder
- Defined in:
- lib/params_ready/value/custom.rb
Class Method Summary collapse
Methods inherited from StringCoder
Methods inherited from Coder
Methods included from Coercion
Methods inherited from AbstractCoder
Methods included from Extensions::ClassReaderWriter
Class Method Details
.coerce(value, _) ⇒ Object
47 48 49 50 51 |
# File 'lib/params_ready/value/custom.rb', line 47 def self.coerce(value, _) return Extensions::Undefined if value.nil? || value.empty? super end |