module Guard::Deprecated::Guard::ClassMethods

def to_hash

def to_hash
  session = ::Guard.state.session
  {
    clear: session.clearing?,
    debug: session.debug?,
    watchdir: Array(session.watchdirs).map(&:to_s),
    notify: session.notify_options[:notify],
    no_interactions: (session.interactor_name == :sleep)
  }
end