Module: Throwaway

Defined in:
lib/throwaway.rb,
lib/throwaway/version.rb,
lib/throwaway/providers.rb

Defined Under Namespace

Classes: Providers

Constant Summary collapse

VERSION =
"1.1.2"

Class Method Summary collapse

Class Method Details

.is_throwaway?(email) ⇒ Boolean

Returns:

  • (Boolean)


10
11
12
# File 'lib/throwaway.rb', line 10

def is_throwaway?(email)
  Throwaway::Providers.list.has_key?(email.split("@").last)
end

.rootObject



6
7
8
# File 'lib/throwaway.rb', line 6

def root
  File.expand_path '../..', __FILE__
end