Sha256: 64e6454c982c06306b3f47908e7fc8d2798c827211d611a003e165d03efe878e
Contents?: true
Size: 388 Bytes
Versions: 1
Compression:
Stored size: 388 Bytes
Contents
require 'singleton' module Twitter class NullObject include Singleton def nil? true end def method_missing(*args, &block) self end def respond_to?(method_name, include_private=false) true end if RUBY_VERSION < "1.9" def respond_to_missing?(method_name, include_private=false) true end if RUBY_VERSION >= "1.9" end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
twitter-5.0.0.rc.1 | lib/twitter/null_object.rb |