Permalink
Browse files

Added class stubs

  • Loading branch information...
1 parent f79a759 commit d997ca80f2fa9a9875bc5632e510b0816a5e6ccf @weavejester committed Jun 25, 2011
Showing with 18 additions and 2 deletions.
  1. +3 −2 README.markdown
  2. +2 −0 lib/password-inquisition.rb
  3. +7 −0 lib/password-inquisition/base.rb
  4. +6 −0 lib/password-inquisition/default.rb
View
@@ -10,8 +10,9 @@ Usage
require 'password-inquisition'
- Inquisition.check_password("password").strength
+ inquisition = Inquisition::Default.new
+ inquisition.test("password").strength
=> :weak
- Inquisition.check_password("87sfH&xmbds7!sJI").strength
+ inquisition.test("87sfH&xmbds7!sJI").strength
=> :very_strong
@@ -0,0 +1,2 @@
+require 'password-inquisition/default'
+require 'password-inquisition/version'
@@ -0,0 +1,7 @@
+module Inquisition
+ class Base
+ def test(password)
+ nil
+ end
+ end
+end
@@ -0,0 +1,6 @@
+require 'password-inquisition/base'
+
+module Inquisition
+ class Default < Base
+ end
+end

0 comments on commit d997ca8

Please sign in to comment.