Class: RVM::Classes::Null

Inherits:
Class
  • Object
show all
Defined in:
lib/rvm/classes/null.rb

Instance Method Summary collapse

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_typeObject



6
7
8
# File 'lib/rvm/classes/null.rb', line 6

def data_type
  :null
end

#eql?(o) ⇒ Boolean

Returns:



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

#hashObject



10
11
12
# File 'lib/rvm/classes/null.rb', line 10

def hash
  nil.hash
end

#is_true?Boolean

Returns:



26
27
28
# File 'lib/rvm/classes/null.rb', line 26

def is_true?
  false
end