Sha256: 2944aca89c7750f545dc030152c073bcacda4d1ca164b42a356daa9f9c6bfaae

Contents?: true

Size: 306 Bytes

Versions: 7

Compression:

Stored size: 306 Bytes

Contents

class FalseClass # :nodoc:
  def to_bool # :nodoc:
    false
  end unless method_defined?(:to_bool)
end

class NilClass # :nodoc:
  def to_bool # :nodoc:
    false
  end unless method_defined?(:to_bool)
end

class Object # :nodoc:
  def to_bool # :nodoc:
    true
  end unless method_defined?(:to_bool)
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
dropbox-1.3.0 lib/dropbox/extensions/to_bool.rb
dropbox-1.2.3 lib/dropbox/extensions/to_bool.rb
dropbox-1.2.2 lib/dropbox/extensions/to_bool.rb
dropbox-1.2.1 lib/dropbox/extensions/to_bool.rb
dropbox-1.2.0 lib/dropbox/extensions/to_bool.rb
dropbox-1.1.2 lib/dropbox/extensions/to_bool.rb
dropbox-1.1.1 lib/dropbox/extensions/to_bool.rb