Module: Greetr
- Defined in:
- lib/greetr.rb,
lib/greetr/engine.rb,
lib/greetr/version.rb,
app/jobs/greetr/application_job.rb,
app/models/greetr/application_record.rb,
app/helpers/greetr/application_helper.rb,
app/mailers/greetr/application_mailer.rb,
app/controllers/greetr/application_controller.rb
Defined Under Namespace
Modules: ApplicationHelper
Classes: ApplicationController, ApplicationJob, ApplicationMailer, ApplicationRecord, Engine
Constant Summary
collapse
- VERSION =
'0.1.0'
Instance Method Summary
collapse
Instance Method Details
#day ⇒ Object
8
9
10
|
# File 'lib/greetr.rb', line 8
def day
DateTime.current.strftime('%A')
end
|
#greet(method = :day) ⇒ Object
4
5
6
|
# File 'lib/greetr.rb', line 4
def greet(method = :day)
'Happy ' + send(method.to_sym)
end
|
#month ⇒ Object
12
13
14
|
# File 'lib/greetr.rb', line 12
def month
DateTime.current.strftime('%B')
end
|