Sha256: 16a56e547b57c0fb550d1dfd57a9352f795d3f3845bc1428220a82b99089b45d

Contents?: true

Size: 385 Bytes

Versions: 2

Compression:

Stored size: 385 Bytes

Contents

# frozen_string_literal: true

class Serega
  class Attribute
    class CheckOptHide
      #
      # Checks attribute :hide option
      #
      # @param opts [Hash] Attribute options
      #
      # @raise [Error] Error that option has invalid value
      #
      # @return [void]
      #
      def self.call(opts)
        CheckOptIsBool.call(opts, :hide)
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
serega-0.1.1 lib/serega/validations/attribute/check_opt_hide.rb
serega-0.1.0 lib/serega/validations/attribute/check_opt_hide.rb