Class: Kanade::Converter::String
- Defined in:
- lib/kanade/converter/string.rb
Instance Method Summary collapse
Methods inherited from Base
Instance Method Details
#deserialize(term, _) ⇒ Object
10 11 12 13 14 |
# File 'lib/kanade/converter/string.rb', line 10 def deserialize(term, _) return nil if term.nil? return term if term.is_a?(String) term.to_s end |
#serialize(term, _) ⇒ Object
6 7 8 9 |
# File 'lib/kanade/converter/string.rb', line 6 def serialize(term, _) return nil if term.nil? term.to_s end |