Class: RVM::Classes::Null
Instance Method Summary collapse
- #data_type ⇒ Object
- #eql?(o) ⇒ Boolean
- #hash ⇒ Object
-
#initialize(value) ⇒ Null
constructor
A new instance of Null.
- #is_true? ⇒ Boolean
Methods inherited from Class
#functions, #method_missing, #variables
Methods included from Plugin
#helper, #included, #plugin_host, #plugin_id, #register_for
Constructor Details
#initialize(value) ⇒ Null
Returns a new instance of Null.
22 23 24 |
# File 'lib/rvm/classes/null.rb', line 22 def initialize value super() end |
Dynamic Method Handling
This class handles dynamic methods through the method_missing method in the class RVM::Classes::Class
Instance Method Details
#data_type ⇒ Object
6 7 8 |
# File 'lib/rvm/classes/null.rb', line 6 def data_type :null end |
#eql?(o) ⇒ Boolean
14 15 16 17 18 19 20 |
# File 'lib/rvm/classes/null.rb', line 14 def eql?(o) if o.nil? and o.is_a?(RVM::Classes::Null) true else false end end |
#hash ⇒ Object
10 11 12 |
# File 'lib/rvm/classes/null.rb', line 10 def hash nil.hash end |