class Authorization::DevelopmentSupport::ChangeAnalyzer::Step
Public Instance Methods
eql?(other)
click to toggle source
# File lib/declarative_authorization/development_support/change_analyzer.rb, line 147 def eql? (other) # TODO use approach.users.index(self[idx]) == # other.approach.users.index(other[idx]) # instead of user.login other.is_a?(Array) && other.length == length && (0...length).all? {|idx| self[idx].class == other[idx].class && ((self[idx].respond_to?(:to_sym) && self[idx].to_sym == other[idx].to_sym) || (self[idx].respond_to?(:login) && self[idx].login == other[idx].login) || self[idx] == other[idx] ) } end
inspect()
click to toggle source
# File lib/declarative_authorization/development_support/change_analyzer.rb, line 158 def inspect collect {|info| info.respond_to?(:to_sym) ? info.to_sym : (info.respond_to?(:login) ? info.login : info.class.name)}.inspect end