class VagrantCloud::Data::NilClass
Custom nil class which is used for signifying a nil value that was not set by the user. This makes it easy to filter out values which are unset vs. those that are set to nil.
Public Instance Methods
!()
click to toggle source
# File lib/vagrant_cloud/data.rb, line 23 def !; true; end
&(_)
click to toggle source
# File lib/vagrant_cloud/data.rb, line 20 def &(_); false; end
==(v)
click to toggle source
Calls superclass method
# File lib/vagrant_cloud/data.rb, line 12 def ==(v); v.nil? || super(v); end
===(v)
click to toggle source
# File lib/vagrant_cloud/data.rb, line 13 def ===(v); equal?(v); end
^(_)
click to toggle source
# File lib/vagrant_cloud/data.rb, line 22 def ^(_); false; end
equal?(v)
click to toggle source
Calls superclass method
# File lib/vagrant_cloud/data.rb, line 14 def equal?(v); v.nil? || super(v); end
inspect()
click to toggle source
# File lib/vagrant_cloud/data.rb, line 24 def inspect; 'nil'; end
nil?()
click to toggle source
# File lib/vagrant_cloud/data.rb, line 11 def nil?; true; end
to_a()
click to toggle source
# File lib/vagrant_cloud/data.rb, line 17 def to_a; []; end
to_f()
click to toggle source
# File lib/vagrant_cloud/data.rb, line 16 def to_f; 0.0; end
to_h()
click to toggle source
# File lib/vagrant_cloud/data.rb, line 18 def to_h; {}; end
to_i()
click to toggle source
# File lib/vagrant_cloud/data.rb, line 15 def to_i; 0; end
to_s()
click to toggle source
# File lib/vagrant_cloud/data.rb, line 19 def to_s; ""; end
|(_)
click to toggle source
# File lib/vagrant_cloud/data.rb, line 21 def |(_); false; end