Class: Stewfinder
- Inherits:
-
Object
- Object
- Stewfinder
- Defined in:
- lib/stewfinder.rb,
lib/stewfinder/version.rb
Constant Summary collapse
- VERSION =
'0.0.1'
Instance Method Summary collapse
- #find ⇒ Object
-
#initialize(filename) ⇒ Stewfinder
constructor
A new instance of Stewfinder.
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
#find ⇒ Object
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 |