lib/metaa/concern.rb
def meta_class
        prefix = respond_to?(:model_name) ? model_name : name
        meta_name = "#{prefix}Meta"
        meta_name.constantize
      rescue NameError => error
        raise unless error.missing_name?(meta_name)
        raise Metaa::UninferrableMetaError.new(self)
      end
# Infers the meta class to be used by {Concern#meta} (e.g.
# `Product` maps to `ProductMeta`).
#
# @return [Class] the inferred meta class.
Infers the meta class to be used by {Concern#meta} .
Infers the meta class to be used by { Concern#meta } .
def meta_class
        prefix = respond_to?(:model_name) ? model_name : name
        meta_name = "#{prefix}Meta"
        meta_name.constantize
      rescue NameError => error
        raise unless error.missing_name?(meta_name)
        raise Metaa::UninferrableMetaError.new(self)
      end
def meta_class prefix = respond_to? ( :model_name ) ? model_name : name meta_name = "#{prefix}Meta" meta_name . constantize rescue NameError => error raise unless error . missing_name? ( meta_name ) raise Metaa :: UninferrableMetaError . new ( self ) end
Infers the meta class to be used by {Concern#meta} (e.g.
Infers the meta class to be used by { Concern#meta } ( e . g .
the inferred meta class.
the inferred meta class .
Class