class Metasploit::Model::Search::Operation::Group::Base
A group of one or more {#children child operations} from an operator's `#operate_on`, should be visited the same as {Metasploit::Model::Search::Group::Base}.
Attributes
children[W]
@!attribute [rw] children
Children operations of union. @return [Array<Metasploit::Model::Search::Operation::Base>]
Public Instance Methods
children()
click to toggle source
Methods
# File app/models/metasploit/model/search/operation/group/base.rb, line 40 def children @children ||= [] end
Private Instance Methods
children_valid()
click to toggle source
Validates that {#children} are valid
@return [void]
# File app/models/metasploit/model/search/operation/group/base.rb, line 49 def children_valid if children.is_a? Enumerable # can't use children.all?(&:valid?) as it will short-circuit and want all children to have validation errors valids = children.map(&:valid?) unless valids.all? errors.add(:children, :invalid, value: children) end end end