class Spreewald::Steps::ShowMeTheMails
Public Class Methods
new(mails, only_header = false)
click to toggle source
# File lib/steps/show_me_the_mails.rb, line 6 def initialize(mails, only_header = false) @mails = mails @only_header = only_header end
Public Instance Methods
run()
click to toggle source
# File lib/steps/show_me_the_mails.rb, line 11 def run if @mails.empty? puts "No emails found" else puts MailFinder.show_mails(@mails, @only_header) end end