Class: Serega::SeregaPlugins::Metadata::MetaAttribute::CheckOptConst

Inherits:
Object
  • Object
show all
Defined in:
lib/serega/plugins/metadata/validations/check_opt_const.rb

Overview

MetaAttribute ‘:const` option validator

Class Method Summary collapse

Class Method Details

.call(opts, block = nil) ⇒ void

This method returns an undefined value.

Checks meta_attribute :const option

Raises:



21
22
23
24
25
# File 'lib/serega/plugins/metadata/validations/check_opt_const.rb', line 21

def call(opts, block = nil)
  return unless opts.key?(:const)

  check_usage_with_other_params(opts, block)
end