class Nknm::List

Public Instance Methods

items() click to toggle source

:nocov:

# File lib/nknm/list.rb, line 6
def items
  raise NotImplementedError
end
matches_for(nickname) click to toggle source

Get a set of matches for the specified nickname. @param nickname [Nknm::Nickname] @return [Matches]

# File lib/nknm/list.rb, line 14
def matches_for(nickname)
  Matches.new(items.select { |i| nickname.for?(i.to_word) })
end