Skip to content

Instantly share code, notes, and snippets.

@lxfontes
Created April 13, 2012 06:04
Show Gist options
  • Select an option

  • Save lxfontes/2374242 to your computer and use it in GitHub Desktop.

Select an option

Save lxfontes/2374242 to your computer and use it in GitHub Desktop.
Resignation Letter
class Resignation
attr_accessor :name,:date,:kind_note,:reason_array,:signoff
def initialize(employee_name,end_date)
@name=employee_name
@date=end_date
@kind_note = "With great sorrow"
end
def random_reasons(reasons)
@reason_array=Array(reasons)
end
def resign!
reason = reason_array ? reason_array[rand(reason_array.size)]+" " : ""
puts "#{reason}#{kind_note} I, #{name}, hereby resign effective as of #{date}.\n\n#{signoff}\n-#{name}"
end
end
lx = Resignation.new("Lucas","2012-07-01")
lx.kind_note = "I must cheer from the sidelines now."
reasons = [
"It is time for me to move on.",
"A T-rex told me in a dream to find a new job.",
"I want to spend more time with my family.",
"I'm joining the Peace Corps.",
"My Facebook for Dogs startup got funded.",
"I am going to buy storage lockers and get on TV.",
"I need to devote more time to upvoting articles on Hacker News."
]
lx.random_reasons(reasons)
lx.signoff = "For all the bacon,"
lx.resign!
@coverlettersample

Copy link
Copy Markdown

I think you should use professional resignation letter samples

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment