Skip to content

Commit

Permalink
Namespace NullObject
Browse files Browse the repository at this point in the history
  • Loading branch information
sferik committed Jun 30, 2013
1 parent 17880f4 commit b6204b9
Showing 1 changed file with 13 additions and 11 deletions.
24 changes: 13 additions & 11 deletions lib/twitter/null_object.rb
Original file line number Diff line number Diff line change
@@ -1,16 +1,18 @@
class NullObject
module Twitter
class NullObject

def method_missing(*args, &block)
nil
end
def method_missing(*args, &block)
nil
end

def null?
true
end
alias nil? null?
def null?
true
end
alias nil? null?

def !
true
end
def !
true
end

end
end

0 comments on commit b6204b9

Please sign in to comment.