Sha256: 80d92331c6a4a522dc39f60d867e93f8cd1532a82fae5def397d38aaa061226b
Contents?: true
Size: 591 Bytes
Versions: 4
Compression:
Stored size: 591 Bytes
Contents
module Twitter class NullObject # @return [TrueClass] This method always returns true. def nil? true end # @return [Twitter::NullObject] This method always returns self. def method_missing(*args, &block) self end # @return [TrueClass] This method always returns true. def respond_to?(method_name, include_private=false) true end if RUBY_VERSION < "1.9" # @return [TrueClass] This method always returns true. def respond_to_missing?(method_name, include_private=false) true end if RUBY_VERSION >= "1.9" end end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
twitter-5.1.1 | lib/twitter/null_object.rb |
twitter-5.1.0 | lib/twitter/null_object.rb |
twitter-5.0.1 | lib/twitter/null_object.rb |
twitter-5.0.0 | lib/twitter/null_object.rb |