Class: LcpRuby::Types::Transforms::Strip
- Inherits:
-
BaseTransform
- Object
- BaseTransform
- LcpRuby::Types::Transforms::Strip
- Defined in:
- lib/lcp_ruby/types/transforms/strip.rb
Instance Method Summary collapse
Instance Method Details
#call(value) ⇒ Object
5 6 7 |
# File 'lib/lcp_ruby/types/transforms/strip.rb', line 5 def call(value) value.respond_to?(:strip) ? value.strip : value end |