Class: Stewfinder

Inherits:
Object
  • Object
show all
Defined in:
lib/stewfinder.rb,
lib/stewfinder/version.rb

Constant Summary collapse

VERSION =
'0.0.1'

Instance Method Summary collapse

Constructor Details

#initialize(filename) ⇒ Stewfinder

Returns a new instance of Stewfinder.



5
6
7
# File 'lib/stewfinder.rb', line 5

def initialize(filename)
  @name = filename
end

Instance Method Details

#findObject



9
10
11
12
13
14
15
16
17
18
# File 'lib/stewfinder.rb', line 9

def find
  stewards = get_stewards

  puts 'Stewards for this file:'
  if stewards.empty?
    puts 'None'
  else
    puts ' - ' + stewards.uniq.sort.join("\n - ")
  end
end