class Praxis::Types::SplattableStringArray
Public Class Methods
decode_string(value, _context)
click to toggle source
Make a type, to allow to load the value, as s single string, if it isn’t a numerable This way we can do displayable: ‘foobar’ , or displayable: [‘one’, ‘two’]
# File lib/praxis/types/splattable_string_array.rb, line 8 def self.decode_string(value, _context) Array(value) end