Class Authorization::DevelopmentSupport::ChangeAnalyzer::Step
In: lib/declarative_authorization/development_support/change_analyzer.rb
Parent: Array

Methods

eql?   inspect  

Public Instance methods

[Source]

     # File lib/declarative_authorization/development_support/change_analyzer.rb, line 147
147:         def eql? (other)
148:           # TODO use approach.users.index(self[idx]) ==
149:           #    other.approach.users.index(other[idx])
150:           # instead of user.login
151:           other.is_a?(Array) && other.length == length &&
152:               (0...length).all? {|idx| self[idx].class == other[idx].class &&
153:                   ((self[idx].respond_to?(:to_sym) && self[idx].to_sym == other[idx].to_sym) ||
154:                    (self[idx].respond_to?(:login) && self[idx].login == other[idx].login) ||
155:                    self[idx] == other[idx] ) }
156:         end

[Source]

     # File lib/declarative_authorization/development_support/change_analyzer.rb, line 158
158:         def inspect
159:           collect {|info| info.respond_to?(:to_sym) ? info.to_sym : (info.respond_to?(:login) ? info.login : info.class.name)}.inspect
160:         end

[Validate]