Class: HappyMapper::UnExtendable

Inherits:
SimpleDelegator
  • Object
show all
Defined in:
lib/happymapper/differ.rb

Overview

nil, Float, and other classes can’t be extended so this object acts as wrapper

Instance Method Summary collapse

Instance Method Details

#classObject



76
77
78
# File 'lib/happymapper/differ.rb', line 76

def class
  __getobj__.class
end

#nil?Boolean

Returns:

  • (Boolean)


80
81
82
# File 'lib/happymapper/differ.rb', line 80

def nil?
  __getobj__.nil?
end