Skip to content

Commit

Permalink
refactoring to base class
Browse files Browse the repository at this point in the history
  • Loading branch information
tenderlove committed Jul 12, 2010
1 parent 45662a3 commit e822812
Showing 1 changed file with 4 additions and 8 deletions.
12 changes: 4 additions & 8 deletions lib/valim.rb
Expand Up @@ -9,26 +9,22 @@ def deny
end
alias :deny? :deny

def / o
self
end

def confirm_deny?
confirm?
end
end

class FalseClass
def / o
self
end

def to_s
"deny"
end
end

class TrueClass
def / o
self
end

def to_s
"confirm"
end
Expand Down

0 comments on commit e822812

Please sign in to comment.