lib/yard/code_objects/namespace_object.rb in yard-0.9.5 vs lib/yard/code_objects/namespace_object.rb in yard-0.9.6

- old
+ new

@@ -1,17 +1,14 @@ +# frozen_string_literal: true module YARD::CodeObjects register_separator NSEP, :namespace default_separator NSEP # A "namespace" is any object that can store other objects within itself. # The two main Ruby objects that can act as namespaces are modules # ({ModuleObject}) and classes ({ClassObject}). class NamespaceObject < Base - attr_writer :constants, :cvars, :mixins, :child, :meths - attr_writer :class_attributes, :instance_attributes - attr_writer :included_constants, :included_meths - # @return [Array<String>] a list of ordered group names inside the namespace # @since 0.6.0 attr_accessor :groups # The list of objects defined in this namespace @@ -91,10 +88,10 @@ children.find {|o| o.name == opts.to_sym } else opts = SymbolHash[opts] children.find do |obj| opts.each do |meth, value| - break false if !(value.is_a?(Array) ? value.include?(obj[meth]) : obj[meth] == value) + break false unless value.is_a?(Array) ? value.include?(obj[meth]) : obj[meth] == value end end end end