Class: Blacklight::Types::JsonValue

Inherits:
Value
  • Object
show all
Defined in:
app/values/blacklight/types.rb

Instance Method Summary collapse

Methods inherited from Value

coerce

Instance Method Details

#cast(input) ⇒ Object



75
76
77
78
79
80
81
# File 'app/values/blacklight/types.rb', line 75

def cast(input)
  value = super

  return value unless value.is_a?(String)

  JSON.parse(value)
end