valim 0.0.2 → 0.0.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (2) hide show
  1. data/lib/valim.rb +11 -3
  2. metadata +3 -3
data/lib/valim.rb CHANGED
@@ -8,7 +8,7 @@ module Kernel
8
8
  end
9
9
 
10
10
  def confirm
11
- true
11
+ !!self
12
12
  end
13
13
 
14
14
  def deny
@@ -39,6 +39,10 @@ end
39
39
  class FalseClass
40
40
  include Valim::Denied
41
41
 
42
+ def / o
43
+ self
44
+ end
45
+
42
46
  def inspect
43
47
  "deny"
44
48
  end
@@ -52,8 +56,12 @@ class TrueClass
52
56
  def inspect
53
57
  "confirm"
54
58
  end
55
-
59
+
60
+ def / o
61
+ self
62
+ end
63
+
56
64
  def to_s
57
65
  "confirm"
58
66
  end
59
- end
67
+ end
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: valim
3
3
  version: !ruby/object:Gem::Version
4
- hash: 27
4
+ hash: 25
5
5
  prerelease: false
6
6
  segments:
7
7
  - 0
8
8
  - 0
9
- - 2
10
- version: 0.0.2
9
+ - 3
10
+ version: 0.0.3
11
11
  platform: ruby
12
12
  authors:
13
13
  - Carl Lerche