def constants(opts = {})
      opts = SymbolHash[:inherited => true].update(opts)
      super(opts) + (opts[:inherited] ? inherited_constants : [])
    end
def constants(opts = {})
      opts = SymbolHash[:inherited => true].update(opts)
      super(opts) + (opts[:inherited] ? inherited_constants : [])
    end
Returns the list of constants matching the options hash.

 @param [Hash] opts the options hash to match
 @option opts [Boolean] :inherited (true) whether inherited constant should be
   included in the list
 @option opts [Boolean] :included (true) whether mixed in constant should be
   included in the list
 @return [Array<ConstantObject>] the list of constant that matched