Module: ViewSpec::DSL::Params
- Extended by:
- ActiveSupport::Concern
- Included in:
- GroupContext, ScenarioContext, SpecContext
- Defined in:
- lib/view_spec/dsl/params.rb
Defined Under Namespace
Classes: ParamData
Instance Method Summary collapse
Instance Method Details
#param(name, cast_type = nil, **options) ⇒ Object
10 11 12 |
# File 'lib/view_spec/dsl/params.rb', line 10 def param(name, cast_type = nil, **) params_data[name] = ParamData.new(cast_type, ) end |
#params_data ⇒ Object
14 15 16 |
# File 'lib/view_spec/dsl/params.rb', line 14 def params_data @params_data ||= {} end |