Module: Apipie::DSL::Base

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#api_paramsObject (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_descriptionsObject (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