Module: Apipie::DSL::Base
- Included in:
- Concern, Controller, ResourceDescriptionDsl, ResponseDescription, ResponseDescription::ResponseObject, Validator::HashValidator
- Defined in:
- lib/apipie/dsl_definition.rb
Instance Attribute Summary collapse
-
#api_params ⇒ Object
readonly
Returns the value of attribute api_params.
-
#apipie_resource_descriptions ⇒ Object
readonly
Returns the value of attribute apipie_resource_descriptions.
Instance Method Summary collapse
Instance Attribute Details
#api_params ⇒ Object (readonly)
Returns the value of attribute api_params.
9 10 11 |
# File 'lib/apipie/dsl_definition.rb', line 9 def api_params @api_params end |
#apipie_resource_descriptions ⇒ Object (readonly)
Returns the value of attribute apipie_resource_descriptions.
9 10 11 |
# File 'lib/apipie/dsl_definition.rb', line 9 def apipie_resource_descriptions @apipie_resource_descriptions end |
Instance Method Details
#_apipie_eval_dsl(*args, &block) ⇒ Object
11 12 13 14 15 16 17 |
# File 'lib/apipie/dsl_definition.rb', line 11 def _apipie_eval_dsl(*args, &block) raise 'The Apipie DLS data need to be cleared before evaluating new block' if @_apipie_dsl_data instance_exec(*args, &block) return _apipie_dsl_data ensure _apipie_dsl_data_clear end |