twitter-status-bot/.gems/gems/twitter-5.11.0/lib/twitter/null_object.rb

15 lines
251 B
Ruby
Raw Normal View History

require 'naught'
module Twitter
NullObject = Naught.build do |config|
config.black_hole
config.define_explicit_conversions
config.define_implicit_conversions
config.predicates_return false
def nil?
true
end
end
end