Class: Array

Inherits:
Object show all
Includes:
Tracing::RuleMatch
Defined in:
lib/extensions/array_extensions.rb

Instance Method Summary collapse

Methods included from Tracing::RuleMatch

#matches_any?, #rules_allow_action

Instance Method Details

#action_handlersObject

iterate and return action_handlers array



24
25
26
27
28
29
30
# File 'lib/extensions/array_extensions.rb', line 24

def action_handlers
  _action_handlers = []
  self.each do |_action_handler|
    _action_handlers.add(_action_handler.action_handlers)
  end
  _action_handlers                
end

#add(obj) ⇒ Object



4
5
6
7
8
# File 'lib/extensions/array_extensions.rb', line 4

def add(obj)
  self << obj
  self.flatten!
  self.compact! if self
end

#appendersObject

iterate and return action_handlers array



33
34
35
36
37
38
39
# File 'lib/extensions/array_extensions.rb', line 33

def appenders
  _appenders = []
  self.each do |_appender|
    _appenders.add(_appender.appenders)
  end
  _appenders        
end

#filtersObject

iterate and return filters array



15
16
17
18
19
20
21
# File 'lib/extensions/array_extensions.rb', line 15

def filters
  _filters = []
  self.each do |_filter|
    _filters.add(_filter.filters)
  end
  _filters                    
end

#rule_listObject



10
11
12
# File 'lib/extensions/array_extensions.rb', line 10

def rule_list
  self
end