Module: Meta
- Defined in:
- lib/meta/application.rb,
lib/meta/rails.rb,
lib/meta/config.rb,
lib/meta/entity.rb,
lib/meta/errors.rb,
lib/meta/scope/base.rb,
lib/meta/utils/path.rb,
lib/meta/scope/utils.rb,
lib/meta/swagger_doc.rb,
lib/meta/application/route.rb,
lib/meta/application/metadata.rb,
lib/meta/utils/kwargs/builder.rb,
lib/meta/utils/kwargs/checker.rb,
lib/meta/utils/kwargs/helpers.rb,
lib/meta/application/execution.rb,
lib/meta/application/responses.rb,
lib/meta/application/parameters.rb,
lib/meta/route_dsl/meta_builder.rb,
lib/meta/utils/kwargs/consumers.rb,
lib/meta/application/application.rb,
lib/meta/route_dsl/chain_builder.rb,
lib/meta/route_dsl/route_builder.rb,
lib/meta/route_dsl/action_builder.rb,
lib/meta/utils/route_dsl_builders.rb,
lib/meta/application/linked_action.rb,
lib/meta/json_schema/support/errors.rb,
lib/meta/route_dsl/parameters_builder.rb,
lib/meta/application/path_matching_mod.rb,
lib/meta/route_dsl/application_builder.rb,
lib/meta/utils/kwargs/extras_consumers.rb,
lib/meta/json_schema/schemas/properties.rb,
lib/meta/json_schema/schemas/ref_schema.rb,
lib/meta/json_schema/support/presenters.rb,
lib/meta/json_schema/support/validators.rb,
lib/meta/json_schema/schemas/base_schema.rb,
lib/meta/json_schema/support/json_object.rb,
lib/meta/route_dsl/around_action_builder.rb,
lib/meta/json_schema/schemas/array_schema.rb,
lib/meta/json_schema/schemas/object_schema.rb,
lib/meta/json_schema/support/scope_matcher.rb,
lib/meta/json_schema/schemas/dynamic_schema.rb,
lib/meta/json_schema/schemas/scoping_schema.rb,
lib/meta/json_schema/schemas/staging_schema.rb,
lib/meta/json_schema/support/schema_options.rb,
lib/meta/json_schema/support/type_converter.rb,
lib/meta/route_dsl/uniformed_params_builder.rb,
lib/meta/json_schema/schemas/named_properties.rb,
lib/meta/json_schema/schemas/unsupported_schema.rb,
lib/meta/json_schema/builders/ref_schema_builder.rb,
lib/meta/json_schema/builders/schema_builder_tool.rb,
lib/meta/json_schema/builders/array_schema_builder.rb,
lib/meta/json_schema/builders/object_schema_builder.rb,
lib/meta/json_schema/builders/dynamic_schema_builder.rb
Overview
将 Ruby 类型包装成 JsonObject 类型,以便可以通过 [key] 访问。同时,保留其他方法的调用,将其转发到原始对象上。
Defined Under Namespace
Modules: Errors, JsonSchema, Rails, RouteDSL, SwaggerDocUtil, Utils Classes: Application, Entity, Execution, LinkedAction, Metadata, Parameters, PathMatching, PathMatchingMod, Responses, Route, Scope
Constant Summary collapse
- DEFAULT_OPTIONS =
{ json_schema_user_options: {}, json_schema_param_stage_user_options: {}, json_schema_render_stage_user_options: {} }
Class Attribute Summary collapse
-
.config ⇒ Object
readonly
Returns the value of attribute config.
Class Method Summary collapse
Class Attribute Details
.config ⇒ Object (readonly)
Returns the value of attribute config.
13 14 15 |
# File 'lib/meta/config.rb', line 13 def config @config end |
Class Method Details
.initialize_configuration(*options_list) ⇒ Object
15 16 17 18 |
# File 'lib/meta/config.rb', line 15 def initialize_configuration(*) = .reduce(DEFAULT_OPTIONS, :deep_merge) @config = HashToStruct.struct() end |