Class: ApipieDSL::Validator::KWRestValidator
Instance Attribute Summary
#param_description
Class Method Summary
collapse
Instance Method Summary
collapse
#==, #docs, find, inherited, #initialize, #inspect, #inspected_fields, #merge_with, #sub_params, #to_s, #valid?
Class Method Details
.build(param_description, argument, _options, _block) ⇒ Object
444
445
446
447
448
|
# File 'lib/apipie_dsl/validator.rb', line 444
def self.build(param_description, argument, _options, _block)
return unless %i[kwrest kwlist kwsplat].include?(argument)
new(param_description)
end
|
Instance Method Details
#description ⇒ Object
455
456
457
|
# File 'lib/apipie_dsl/validator.rb', line 455
def description
'Must be a list of key: value'
end
|
#expected_type ⇒ Object
459
460
461
|
# File 'lib/apipie_dsl/validator.rb', line 459
def expected_type
'kwlist'
end
|
#validate(_value) ⇒ Object
450
451
452
453
|
# File 'lib/apipie_dsl/validator.rb', line 450
def validate(_value)
true
end
|