Class: ActionView::Storybook::Controls::ObjectConfig
Instance Attribute Summary
#name, #param, #value
Instance Method Summary
collapse
#initialize, #to_csf_params
Instance Method Details
#type ⇒ Object
7
8
9
|
# File 'lib/action_view/storybook/controls/object_config.rb', line 7
def type
:object
end
|
#value_from_param(param) ⇒ Object
11
12
13
14
15
16
17
|
# File 'lib/action_view/storybook/controls/object_config.rb', line 11
def value_from_param(param)
if param.is_a?(String)
JSON.parse(param).deep_symbolize_keys
else
super(param)
end
end
|