module SmartCore::Schema::DSL::ClassMethods
@api private @since 0.1.0 @version 0.3.0
Public Instance Methods
__schema_checker__()
click to toggle source
@return [SmartCore::Schema::Checker]
@api private @since 0.1.0
# File lib/smart_core/schema/dsl.rb, line 45 def __schema_checker__ @__schema_checker__ end
non_strict!()
click to toggle source
@return [void]
@api public @since 0.3.0
# File lib/smart_core/schema/dsl.rb, line 77 def non_strict! __schema_checker__.set_strict_mode(:non_strict) end
schema(strict_mode = nil, &definitions)
click to toggle source
@param strict_mode [NilClass, String, Symbol] @param definitions [Block] @return [void]
@note nil strict mode means `do not change current mode`
@api public @since 0.1.0 @version 0.3.0
# File lib/smart_core/schema/dsl.rb, line 58 def schema(strict_mode = nil, &definitions) __schema_checker__.invoke_in_pipe do set_strict_mode(strict_mode) append_schema_definitions(&definitions) end end
strict!()
click to toggle source
@return [void]
@api public @since 0.3.0
# File lib/smart_core/schema/dsl.rb, line 69 def strict! __schema_checker__.set_strict_mode(:strict) end