Class: HappyMapper::UnExtendable

Inherits:
SimpleDelegator
  • Object
show all
Defined in:
lib/happymapper/un_extendable.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



5
6
7
# File 'lib/happymapper/un_extendable.rb', line 5

def class
  __getobj__.class
end

#nil?Boolean

Returns:

  • (Boolean)


9
10
11
# File 'lib/happymapper/un_extendable.rb', line 9

def nil?
  __getobj__.nil?
end