module Happened

Constants

VERSION

Public Instance Methods

method_missing(mname, *args, &block) click to toggle source
Calls superclass method
# File lib/happened.rb, line 4
def method_missing(mname, *args, &block)
  m = mname.to_s
  at_attribute = m.gsub('?', '_at')
  if m[-1] == '?' && respond_to?(at_attribute)
    !!self.send(at_attribute)
  else
    super
  end
end