class PrxAuth::ScopeList::Entry

Public Instance Methods

==(other_entry) click to toggle source
# File lib/prx_auth/scope_list.rb, line 10
def ==(other_entry)
  namespace == other_entry.namespace && scope == other_entry.scope
end
inspect() click to toggle source
# File lib/prx_auth/scope_list.rb, line 30
def inspect
  "#<ScopeList::Entry \"#{to_s}\">"
end
namespaced?() click to toggle source
# File lib/prx_auth/scope_list.rb, line 18
def namespaced?
  !(namespace.nil? || namespace == NO_NAMESPACE)
end
to_s() click to toggle source
# File lib/prx_auth/scope_list.rb, line 14
def to_s
  string
end
unnamespaced() click to toggle source
# File lib/prx_auth/scope_list.rb, line 22
def unnamespaced
  if namespaced?
    Entry.new(NO_NAMESPACE, scope, string.split(':').last)
  else
    self
  end
end