Class: NilClass

Inherits:
Object
  • Object
show all
Defined in:
lib/R_interface/ruby_extensions.rb

Instance Method Summary collapse

Instance Method Details

#is__nullObject

R NULL becomes Ruby nil; treat nil as null so .is__null.unboxed_get(0) works.



249
250
251
# File 'lib/R_interface/ruby_extensions.rb', line 249

def is__null
  R::NULL_IS_NULL
end

#isTRUEObject

R's isTRUE(NULL) is FALSE; so nil.isTRUE.unboxed_get(0) => false.



253
254
255
# File 'lib/R_interface/ruby_extensions.rb', line 253

def isTRUE
  R::NULL_IS_FALSE
end