Sha256: 6bdfdab987bc00268dca1156f14772f5e491beb6e8045ee68c385a466726acc5

Contents?: true

Size: 1.23 KB

Versions: 4

Compression:

Stored size: 1.23 KB

Contents

# frozen_string_literal: true

# @api private
# @since 0.1.0
# @version 0.8.0
class SmartCore::Schema::Checker::Rules::Options
  require_relative 'options/empty'
  require_relative 'options/type'
  require_relative 'options/filled'

  # @param rule [SmartCore::Schema::Checker::Rules::Base]
  # @return [void]
  #
  # @api private
  # @since 0.1.0
  def initialize(rule)
    @type = Empty.new(rule)
    @filled = Empty.new(rule)
  end

  # @return [SmartCore::Schema::Checker::Rules::Options::Type]
  # @return [SmartCore::Schema::Checker::Rules::Options::Empty]
  #
  # @api private
  # @since 0.1.0
  # @version 0.8.0
  def type
    @type
  end

  # @param option [SmartCore::Schema::Checker::Rules::Options::Type]
  # @return [void]
  #
  # @api private
  # @since 0.1.0
  # @version 0.8.0
  def type=(option)
    @type = option
  end

  # @return [SmartCore::Schema::Checker::Rules::Options::Filled]
  # @return [SmartCore::Schema::Checker::Rules::Options::Empty]
  #
  # @api private
  # @since 0.1.0
  # @version 0.8.0
  def filled
    @filled
  end

  # @param option [SmartCore::Schema::Checker::Rules::Options::Filled]
  # @return [void]
  #
  # @api private
  # @since 0.1.0
  # @version 0.8.0
  def filled=(option)
    @filled = option
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
smart_schema-0.11.0 lib/smart_core/schema/checker/rules/options.rb
smart_schema-0.10.0 lib/smart_core/schema/checker/rules/options.rb
smart_schema-0.9.0 lib/smart_core/schema/checker/rules/options.rb
smart_schema-0.8.0 lib/smart_core/schema/checker/rules/options.rb