class Nknm::Lists::Directory::Entry

Attributes

path[R]
to_s[R]

Public Class Methods

new(path) click to toggle source
# File lib/nknm/lists/directory.rb, line 36
def initialize(path)
  @path = path
end

Public Instance Methods

to_word() click to toggle source

Turn this entry into a word matchable by a nickname. @return [String]

# File lib/nknm/lists/directory.rb, line 42
def to_word
  @_to_word ||= File.basename(path).downcase
end