Skip to content

Instantly share code, notes, and snippets.

View vonconrad's full-sized avatar

Sebastian von Conrad vonconrad

View GitHub Profile
class DoNotDisturb
def initialize
@desk = InformationDesk.new
end
def method_missing(name, *args)
unless name.to_s == "emergency"
hour = Time.now.hour
raise "Out for lunch" if hour >= 12 && hour < 14
end