class SmartCore::Schema::Checker::Rules::Options
@api private @since 0.1.0
Public Class Methods
new(rule)
click to toggle source
@param rule [SmartCore::Schema::Checker::Rules::Base] @return [void]
@api private @since 0.1.0
# File lib/smart_core/schema/checker/rules/options.rb, line 15 def initialize(rule) @type = Empty.new(rule) @filled = Empty.new(rule) @lock = SmartCore::Engine::Lock.new end
Public Instance Methods
filled()
click to toggle source
@return [SmartCore::Schema::Checker::Rules::Options::Filled] @return [SmartCore::Schema::Checker::Rules::Options::Empty]
@api private @since 0.1.0
# File lib/smart_core/schema/checker/rules/options.rb, line 44 def filled @lock.synchronize { @filled } end
filled=(option)
click to toggle source
@param option [SmartCore::Schema::Checker::Rules::Options::Filled] @return [void]
@api private @since 0.1.0
# File lib/smart_core/schema/checker/rules/options.rb, line 53 def filled=(option) @lock.synchronize { @filled = option } end
type()
click to toggle source
@return [SmartCore::Schema::Checker::Rules::Options::Type] @return [SmartCore::Schema::Checker::Rules::Options::Empty]
@api private @since 0.1.0
# File lib/smart_core/schema/checker/rules/options.rb, line 26 def type @lock.synchronize { @type } end
type=(option)
click to toggle source
@param option [SmartCore::Schema::Checker::Rules::Options::Type] @return [void]
@api private @since 0.1.0
# File lib/smart_core/schema/checker/rules/options.rb, line 35 def type=(option) @lock.synchronize { @type = option } end