module Greetr

Constants

VERSION

Public Instance Methods

day() click to toggle source
# File lib/greetr.rb, line 8
def day
  DateTime.current.strftime('%A')
end
greet(method = :day) click to toggle source
# File lib/greetr.rb, line 4
def greet(method = :day)
  'Happy ' + send(method.to_sym)
end
month() click to toggle source
# File lib/greetr.rb, line 12
def month
  DateTime.current.strftime('%B')
end